当我尝试从 Eclipse Neon 运行 shell 时收到此错误消息,而我可以从命令窗口成功运行 Django shell。我正在使用 Python 3.4 和 Django 1.10。知道问题出在哪里吗?
WSGI 文件:
'''
WSGI config for MyProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
'''
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MyProject.settings")
application = get_wsgi_application()