The debug toolbar: Difference between revisions

imported>Paulhomebus
m (moved Enabling the debug toolbar to The debug toolbar: The debug toolbar is now automatically enabled on local development)
imported>Paulhomebus
Line 24:
''
 
== How docan I start usingturn it off? ==
 
These instructions are the quick and easy way to get this working on any machine that has the module [easy_install] - [http://pypi.python.org/pypi/setuptools] for python which is part of setuptools.
 
# easy_install django-debug-toolbar
 
once that's done edit mysite/settings.py
 
''NOTE: Instructions are using vim - modify these instruction to use your favorite editor.''
Line 36 ⟶ 30:
# vim mysite/settings.py
 
Look under INSTALLED_APPS and find the commented line #'debug_toolbar', and uncommentcomment it
( /debug_toolbar # finds the spot to uncommentcomment #'debug_toolbar',)
 
Look under MIDDLEWARE_CLASSES and find the commented line #'debug_toolbar.middleware.DebugToolbarMiddleware', uncommentcomment it also.
( /debug/n # finds the spot to uncommentcomment #'debug_toolbar.middleware.DebugToolbarMiddleware', )
 
That's it - startrestart your OH development server.
./bin/mysite runserver
 
'''Now play with it and start hacking!'''
Anonymous user