Search code examples
pythondjangoopenshiftwsgiopenshift-nextgen

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


The scenario is,

I cloned the Django code for OpenShift-V3 from here . When I ran the code with python manage.py runserver, I got this error:

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.


Solution

  • Go to django-ex/project/settings.py

    Change the line in settings.py as below

    WSGI_APPLICATION = 'application' to WSGI_APPLICATION = 'wsgi.application'

    That's it :(