django.core.exceptions.ImproperlyConfigured:无法加载WSGI应用程序“应用程序” [英] django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded
问题描述
场景是
我从此处。当我使用 python manage.py runserver
运行代码时,出现错误,
I cloned the Django code for OpenShift-V3 from here . When I run the code using python manage.py runserver
getting an error as,
django.core.exceptions.ImproperlyConfigured:无法加载WSGI应用程序
'application';导入模块时出错:
'应用程序看起来不像模块路径
django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded; Error importing module: 'application doesn't look like a module path
我没有在代码中添加任何内容并且所需的软件包已经满足。
I didn't add anything to the code and the required packages are already satisfied.
推荐答案
转到django-ex / project / settings.py
Go to django-ex/project/settings.py
如下所示更改 settings.py 中的行
WSGI_APPLICATION ='application'
至 WSGI_APPLICATION ='wsgi.application'
就是这样:(
这篇关于django.core.exceptions.ImproperlyConfigured:无法加载WSGI应用程序“应用程序”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!