On Mon, 2007-05-14 at 02:07 -0700, Mark Phillips wrote:
> Decided to try a clean slate. Set up Django on SME Server 7.1, which  
> is based on Centos 4.
> Compiled and installed mod_python
> Amended httpd.conf as follows:
> 
> LoadModule python_module modules/mod_python.so
> 
> and later on in the file...
> <Location "/mysite/">
>      SetHandler python-program
>      PythonPath "['/usr/local/mysite'] + sys.path"
>      PythonHandler django.core.handlers.modpython
>      SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>      PythonDebug On
>      PythonAutoReload On
> </Location>

Standard import path blunder: if you are going to import the thing as
mysite.settings, then the directory containing mysite/ had better be on
your python path (i.e. /usr/local/). With the way you've set your
PythonPath up, you probably want just "settings" as your
DJANGO_SETTINGS_MODULE.

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 django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to