场景是,
我从here克隆了OpenShift-V3的Django代码.当我使用python manage.py runserver运行代码时出现错误,
django.core.exceptions.ImproperlyConfigured: WSGI application
‘application’ could not be loaded; Error importing module:
‘application doesn’t look like a module path
我没有在代码中添加任何内容,并且已满足所需的包.
解决方法:
转到django-ex / project / settings.py
更改settings.py中的行,如下所示
WSGI_APPLICATION =’application’到WSGI_APPLICATION =’wsgi.application’
而已 :(