1👍
✅
This bellow stack trace segment has pointing that your problem might have relation to debug toolbar app.
...
File "/lib/python2.7/site-packages/debug_toolbar/models.py", line 9, in <module>
dt_settings.patch_all()
File "/lib/python2.7/site-packages/debug_toolbar/settings.py", line 238, in patch_all
patch_root_urlconf()
File "/lib/python2.7/site-packages/debug_toolbar/settings.py", line 226, in patch_root_urlconf
reverse('djdt:render_panel')
...
From bellow portion of your stack trace, I am expecting not all of your apps has correct urls.py.
...
File "/lib/python2.7/site-packages/django/core/urlresolvers.py", line 329, in app_dict
self._populate()
File "/lib/python2.7/site-packages/django/core/urlresolvers.py", line 267, in _populate
for pattern in reversed(self.url_patterns):
...
You can do the following to trace out which apps are causing the problem
- Turn on debug_toolbar app.
- Manually turning off other apps one by one
If You problem is causing because of one the Django apps, then with turning it off will make your system work.
Debug toolbar is not loaded while you are in production mode. So you are not getting any error while on Production mode.
In Development mode, debug toolbar is trying to load all apps info and falling on some trap caused by other apps.
Best of Luck.
Source:stackexchange.com