Programming in almost language

This is the site where you may share your knowledge and experience to eachother..

  • Categories

  • LinkedIn

  • Tweet Me

  • My footsteps

django-debug-toolbar

Posted by Praveen Kumar on August 9, 2010

you need to do 3 things to get the django-debug-toolbar working:

1. add debug_toolbar.middleware.DebugToolbarMiddleware to you MIDDLEWARE_CLASSES list (after any other middleware that encodes response content, so last is good),

2. add debug_toolbar to your INSTALLED_APPS list,

3. specify the ip address(es) of machine(s) you want to see the toolbar using INTERNAL_IPS, eg INTERNAL_IPS = (‘192.x.x.x’)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: