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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5185069.uTKruVASae%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to