Forums

Improperly configured urlconf??

I am experiencing an annoying problem trying to deploy my mezzanine/django solution. I have searched for solutions, and have tried to disable debug-toolbar, without luck. Can you assist in trying to narrow down the problem. Thanks

2014-04-23 11:47:26,984 [ERROR] root: Traceback (most recent call last):
2014-04-23 11:47:27,010 [ERROR] root:   File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-04-23 11:47:27,017 [ERROR] root:     self.error_log_file.logger.exception("Error running WSGI application")
2014-04-23 11:47:27,021 [ERROR] root:   File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-04-23 11:47:27,025 [ERROR] root:     self.error(msg, *args, **kwargs)
2014-04-23 11:47:27,030 [ERROR] root:   File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-04-23 11:47:27,034 [ERROR] root:     self._log(ERROR, msg, args, **kwargs)
2014-04-23 11:47:27,038 [ERROR] root:   File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-04-23 11:47:27,043 [ERROR] root:     record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-04-23 11:47:27,049 [ERROR] root:   File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-04-23 11:47:27,054 [ERROR] root:     rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-04-23 11:47:27,058 [ERROR] root:   File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-04-23 11:47:27,063 [ERROR] root:     self.threadName = threading.current_thread().name
2014-04-23 11:47:27,067 [ERROR] root:   File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-04-23 11:47:27,071 [ERROR] root:     return _active[_get_ident()]
2014-04-23 11:47:27,075 [ERROR] root:   File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-04-23 11:47:27,080 [ERROR] root:     app_iterator = self.app(environ, start_response)
2014-04-23 11:47:27,084 [ERROR] root:   File "/home/njbuch2/.virtualenvs/anico/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
2014-04-23 11:47:27,128 [ERROR] root:     self.load_middleware()
2014-04-23 11:47:27,158 [ERROR] root:   File "/home/njbuch2/.virtualenvs/anico/lib/python2.7/site-packages/django/core/handlers/base.py", line 49, in load_middleware
2014-04-23 11:47:27,173 [ERROR] root:     mw_instance = mw_class()
2014-04-23 11:47:27,186 [ERROR] root:   File "/home/njbuch2/.virtualenvs/anico/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
2014-04-23 11:47:27,204 [ERROR] root:     for url_pattern in get_resolver(None).url_patterns:
2014-04-23 11:47:27,209 [ERROR] root:   File "/home/njbuch2/.virtualenvs/anico/lib/python2.7/site-packages/django/core/urlresolvers.py", line 365, in url_patterns
2014-04-23 11:47:27,241 [ERROR] root:     raise ImproperlyConfigured("The included urlconf %s doesn't have any patterns in it" % self.urlconf_name)
2014-04-23 11:47:27,260 [ERROR] root: django.core.exceptions.ImproperlyConfigured: The included urlconf web6.urls doesn't have any patterns in it

Btw you are welcome to take a look at my files if you need clarifications... :-)

I think your problem may be more to do with not having set your SECRET_KEY

It was not the secret key. It was the debug-toolbar which was in the optional apps. Removing that solved the problem.