DEBUG_TOOLBAR_PATCH_SETTINGS + Gunicorn
Miserlou opened this issue · 2 comments
Miserlou commented
Hey Xenith!
Love the project, use it all the time.
I've run into this issue a few times now, thought maybe it could be mentioned in the docs. When running the server with Gunicorn in Debug mode, there will be an error about the URLs not working:
ImproperlyConfigured: The included urlconf projectname.urls doesn't have any patterns in it
This can be fixed by setting
DEBUG_TOOLBAR_PATCH_SETTINGS = False
This is isn't something I would have thought of on my own, fortunately there is a well-voted StackOverflow post with the answer.
Not sure what you want to do about this, but figured I'd bring it up.
Tx!
R
xenith commented
Thanks! I've added a note and an example to settings/base.py. Hopefully anyone who runs into that issue will see the note and figure it out.
Miserlou commented
Yay! Thanks.