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

前端 未结 14 3129
[愿得一人]
[愿得一人] 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:44

    I was using django-cors-headers, then I thought I haven't implemented cors in my project, so went ahead to install django-cors-middleware, then it's started giving the wsgi exception, so i checked the stack trace and I found out that it's django-cors-headers and django-cors-middleware conflicting each other. I had to uninstall django-cors-middleware but it's still gives the same exception, so uninstall django-cors-headers too then reinstall and everything works fine....

    0 讨论(0)
  • 2021-02-20 06:47

    I used a middleware CorsMiddleware but forget to install it so after install, it works perfectly.

    pip install django-cors-headers.

    So check something like it you may miss something like it.

    0 讨论(0)
提交回复
热议问题