WebFaction
Community site: login faq

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
11311
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!

(12 Nov '15, 09:29) ryans ♦♦

this has been fixed @ryans thanks

(12 Nov '15, 15:10) six_wars
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337

question asked: 10 Nov '15, 02:21

question was seen: 6,099 times

last updated: 12 Nov '15, 15:10

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM