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,
Did you use python manage.py Appname
do not use django-admin startapp AppName
It will solve the problem
in settings.py file change as follows:
WSGI_APPLICATION = 'your_project_name.wsgi.application'
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 :(
If you run django project locally for development, just remove WSGI_APPLICATION variable from settings.py module. It needs in prod/stage settings, for example settings_prod.py
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.
Then,
Finally, it's worked....
I tried all these solution and the one worked for me was this:
pip install django-htmlmin
This module was missing and not mentioned in requirements.txt
Shows long error message that ends with wsgi application improperly configured. But somewhere in middle I could see "No module named 'htmlmin'
I installed and it is resolved.