On Nov 6, 9:13 am, stranger <[EMAIL PROTECTED]> wrote:
> Thank you Graham for the fast reply.... Could you please elaborate a
> little since i am new to django.
>
> <Location "/mysite/">
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> PythonDebug On
> </Location>
> ...and replace mysite.settings with the Python import path to your
> Django project's settings file.
>
> So how to know Python import path to Django project settings file.
As per exact example in the documentation, something like:
<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
PythonPath "['/path/to/project'] + sys.path"
</Location>
Just replace '/path/to/project' with the parent directory of where
'mysite' project directory is, which in your case seems to be '/home/
priya'.
Just try to do what the documentation says to do.
Graham
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---