Django and mod_python config
Posted
by Peter
on Stack Overflow
See other posts from Stack Overflow
or by Peter
Published on 2010-04-30T03:28:21Z
Indexed on
2010/04/30
3:37 UTC
Read the original article
Hit count: 378
My Django project is placed in /www/host1/htdocs/my/project
, www
and my
are links to other actual folders. Apache has mod_python enabled. I have a .htaccess
in project
folder:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE project.settings
PythonDebug On
PythonOption django.root /my/project
PythonPath "['/www/host1/htdocs/my/project'] + sys.path"
I suppose my site should be accessible from http://host1/my/project
, but I see the following error:
ImportError: Could not import settings 'project.settings' (Is it on sys.path? Does it have syntax errors?): No module named project.settings
Can somebody give any suggestions?
© Stack Overflow or respective owner