WampサーバーにDjangoアプリケーションをデプロイしました。[wsgi:error]:mysite.settingsという名前のモジュールがありません
WSGIScriptAlias/"D:/testdeployment/mysite/mysite/wsgi.py"
WSGIPythonPath "D:/testdeployment/mysite/mysite/"
<Directory "D:/testdeployment/mysite/mysite/">
Order deny,allow
Allow from all
Require all granted
</Directory>
<Directory "D:/testdeployment/mysite/mysite/">
<Files wsgi.py>
Require all granted
</Files>
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
は私は問題が何であるかを教えてください:残念ながら
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
application = get_wsgi_application()
WAMPを構成
mod_wsgi (pid=26240): Target WSGI script 'D:/testdeployment/mysite/mysite/wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=26240): Exception occurred processing WSGI script 'D:/testdeployment/mysite/mysite/wsgi.py'.
Traceback (most recent call last):
File "D:/testdeployment/mysite/mysite/wsgi.py", line 16, in <module>
application = get_wsgi_application()
File "C:\\Python27\\lib\\site-packages\\django-1.9.4-py2.7.egg\\django\\core\\wsgi.py", line 13, in get_wsgi_application
django.setup()
File "C:\\Python27\\lib\\site-packages\\django-1.9.4-py2.7.egg\\django\\__init__.py", line 17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "C:\\Python27\\lib\\site-packages\\django-1.9.4-py2.7.egg\\django\\conf\\__init__.py", line 55, in __getattr__
self._setup(name)
File "C:\\Python27\\lib\\site-packages\\django-1.9.4-py2.7.egg\\django\\conf\\__init__.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "C:\\Python27\\lib\\site-packages\\django-1.9.4-py2.7.egg\\django\\conf\\__init__.py", line 99, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\\Python27\\Lib\\importlib\\__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named mysite.settings
WSGI.PYを停止WAMPをサーバーをインストールピップ実行しているDjangoのapplicaitonにサービスを提供し、エラーの下に投げた後、ここ
[リンクの説明をここに入力してください](https://stackoverflow.com/questions/36210686/importerror-no-module-named-mysite-set-s-django/36211423) –
問題はここで解決されました。それは私のために働いた:https://stackoverflow.com/questions/36210686/importerror-no-module-named-mysite-settings-django/36211423 –