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

user7139313 picture user7139313 · Jan 3, 2017 · Viewed 37.7k times · Source

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,

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.

Answer

Hasan picture Hasan · Apr 3, 2019

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.