I'm upgrading django from 1.5.5 to 1.7 and the error log has this error, upgrading the dependencies doesn't fix the issue.
[Tue Nov 10 02:14:10.064238 2015] [wsgi:error] [pid 443791:tid 139871132526336] handling WSGI exception
[Tue Nov 10 02:14:10.064291 2015] [wsgi:error] [pid 443791:tid 139871132526336] Traceback (most recent call last):
[Tue Nov 10 02:14:10.064310 2015] [wsgi:error] [pid 443791:tid 139871132526336] File "/home/kbuzz/webapps/revision/kb/kb/wsgi.py", line 9, in <module>
[Tue Nov 10 02:14:10.064467 2015] [wsgi:error] [pid 443791:tid 139871132526336] application = get_wsgi_application()
[Tue Nov 10 02:14:10.064480 2015] [wsgi:error] [pid 443791:tid 139871132526336] File "/home/kbuzz/webapps/revision/lib/python2.7/Django-1.7.10-py2.7.egg/django/core/wsgi.py", line 14, in get_wsgi_application
[Tue Nov 10 02:14:10.064513 2015] [wsgi:error] [pid 443791:tid 139871132526336] django.setup()
[Tue Nov 10 02:14:10.064523 2015] [wsgi:error] [pid 443791:tid 139871132526336] File "/home/kbuzz/webapps/revision/lib/python2.7/Django-1.7.10-py2.7.egg/django/__init__.py", line 20, in setup
[Tue Nov 10 02:14:10.064554 2015] [wsgi:error] [pid 443791:tid 139871132526336] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue Nov 10 02:14:10.064564 2015] [wsgi:error] [pid 443791:tid 139871132526336] File "/home/kbuzz/webapps/revision/lib/python2.7/Django-1.7.10-py2.7.egg/django/conf/__init__.py", line 46, in __getattr__
[Tue Nov 10 02:14:10.064640 2015] [wsgi:error] [pid 443791:tid 139871132526336] self._setup(name)
[Tue Nov 10 02:14:10.064650 2015] [wsgi:error] [pid 443791:tid 139871132526336] File "/home/kbuzz/webapps/revision/lib/python2.7/Django-1.7.10-py2.7.egg/django/conf/__init__.py", line 40, in _setup
[Tue Nov 10 02:14:10.064667 2015] [wsgi:error] [pid 443791:tid 139871132526336] % (desc, ENVIRONMENT_VARIABLE))
[Tue Nov 10 02:14:10.064682 2015] [wsgi:error] [pid 443791:tid 139871132526336] ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
[Tue Nov 10 02:14:12.566956 2015] [wsgi:error] [pid 443791:tid 139871132526336] [remote 127.0.0.1:11081] mod_wsgi (pid=443791): Target WSGI script '/home/kbuzz/webapps/revision/kb/kb/wsgi.py' does not contain WSGI application 'application'.
asked
10 Nov '15, 02:21
six_wars
11●3●12
accept rate:
100%
This usually happens when your WSGI script isn't specifying the correct
DJANGO_SETTINGS_MODULE
, but we tried to investigate your specific application and aren't seeing this error. If you're still experiencing this issue, please open a support ticket and provide a way to reproduce the issue, and we'll be happy to take a closer look.Hope that helps!
this has been fixed @ryans thanks