django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded

前端 未结 14 3203
[愿得一人]
[愿得一人] 2021-02-20 06:19

The scenario is,

I cloned the Django code for OpenShift-V3 from here . When I run the code using python manage.py runserver getting an error as,

14条回答
  •  北荒
    北荒 (楼主)
    2021-02-20 06:41

    Same problem.. I checked whether django-cors-middleware and django-cors-headers installed or not. I found those were not installed and then I installed them.

    1. python -m pip install django-cors-middleware
    2. python -m pip install django-cors-headers

    Then,

    1. python manage.py migrate
    2. python manage.py runserver

    Finally, it's worked....

提交回复
热议问题