私の Django プロジェクトは に配置され/www/host1/htdocs/my/project
、他の実際のフォルダーwww
へmy
のリンクです。Apache では mod_python が有効になっています。フォルダがあり.htaccess
ますproject
:
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"
私のサイトには からアクセスできるはずですがhttp://host1/my/project
、次のエラーが表示されます。
ImportError: Could not import settings 'project.settings' (Is it on sys.path? Does it have syntax errors?): No module named project.settings
誰かが何か提案をすることができますか?