我需要我的Apache服務器上部署我的Django應用程序,我已經添加了以下到我的httpd.conf:mod_python的不能看到我的Django項目設置文件
<Location "/dashboard/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/home/firas/project/trunk/dashboard/analytics','/home/firas/project/trunk/dashboard', '/home/firas/project/trunk'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE dashboard.settings
PythonOption django.root /dashboard
PythonDebug On
</Location>
我收到以下錯誤當請求我的應用程序時:
mportError: Could not import settings 'settings' (Is it on sys.path? Does it have syntax errors?): No module named settings
我的settings.py沒有語法錯誤。
任何線索?
它不起作用,我得到相同的錯誤。 – Firas 2010-06-09 16:55:37