Hi,

replace

PythonPath "['/home/testpec/public_html/pecwizard/'] + sys.path"

with

PythonPath "['/home/testpec/public_html/'] + sys.path"

and should then work


Salvatore Leone pisze:
> Hi,
>
> I'm trying to move my site from the developemente server to Apache but I 
> always obtain this error:
>
> ImportError: Could not import settings 'pecwizard.settings' (Is it on 
> sys.path? Does it have syntax errors?): No module named pecwizard.settings
>
>
>
> and here is my apache configuration:
>
>
> <Location "/pecwizard/">
>
>     SetHandler python-program
>
>     PythonHandler django.core.handlers.modpython
>
>     SetEnv DJANGO_SETTINGS_MODULE pecwizard.settings
>
>     PythonPath "['/home/testpec/public_html/pecwizard/'] + sys.path"
>
>     PythonOption django.root /pecwizard
>
>     PythonDebug On
>
> </Location>
>
>
>
> any idea of what could be wrong?
>
> I tryend to put:
>
> SetEnv DJANGO_SETTINGS_MODULE /home/testpec/public_html/pecwizard/settings.py
>
>
> but it says something about I can't set the variable with a full path to 
> the settings.py file
>
> -Salvatore
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to