On Sunday 29 January 2017 09:48:31 Richard Jackson wrote:
> Hi Vijay - that's going to be the problem; I've installed it locally
> but haven't installed it on my (Webfaction-provided) server.
So don't add it to installed apps. One common pattern is to only enable debug tools when settings.DEBUG is True.
So in settings.py make sure INSTALLED_APPS is a list (not a tuple), remove debug_toolbar and add this code:
if DEBUG:
INSTALLED_APPS.append('debug_toolbar')
Done.
Now, all you have to do is not enable DEBUG on the server. Of course, that's the same problem since you're pushing settings.py to the server. And for that, see how Mezzanine solved it using a local_settings.py that is not pushed to the server.
--
Melvyn Sopacua
No comments:
Post a Comment