On Mon, 2006-06-05 at 19:21 -0700, keukaman wrote:
> Thanks for the direction.
>
> When I try to run django-admin.py startproject <projectname> I get
> "Permission Denied".
Since django-admin.py tries to write some files into the current
directory, do you have write permissions for the location where you are
running it? Presumably this isn't the sort of error you are seeing with
your normal website, since you only run "startproject" once at the start
of a project. What errors are you seeing with your existing code?
>
> I'm a bit unclear about the "import django" part of your comment. Below
> is from my httpd.conf file for Apache:
>
> <Location "/">
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE myproject.settings
> PythonPath "['/home/keukaman/webapps/django'] + sys.path"
> PythonDebug On
> </Location>
So at a shell prompt, try this (I am assuming a Unix-like system. If you
are on Windows, you will need to do something equivalent, but I have no
idea what):
export PYTHONPATH=/home/keukaman/webapps/django
python
(this will start up the interactive Python interpreter). Then you can
try to import django:
>>> import django
>>>
If you see any error here, then you have problems with the Django
installation, since it is not finding your installation on Python's
search path.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---