The debug toolbar: Difference between revisions

Content added Content deleted
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: Line 24:
''
''


== How do I start using it? ==
== How can I turn 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.''
''NOTE: Instructions are using vim - modify these instruction to use your favorite editor.''
Line 36: Line 30:
# vim mysite/settings.py
# vim mysite/settings.py


Look under INSTALLED_APPS and find the commented line #'debug_toolbar', and uncomment it
Look under INSTALLED_APPS and find the commented line 'debug_toolbar', and comment it
( /debug_toolbar # finds the spot to uncomment #'debug_toolbar',)
( /debug_toolbar # finds the spot to comment #'debug_toolbar',)


Look under MIDDLEWARE_CLASSES and find the commented line #'debug_toolbar.middleware.DebugToolbarMiddleware', uncomment it also.
Look under MIDDLEWARE_CLASSES and find the line 'debug_toolbar.middleware.DebugToolbarMiddleware', comment it also.
( /debug/n # finds the spot to uncomment #'debug_toolbar.middleware.DebugToolbarMiddleware', )
( /debug/n # finds the spot to comment #'debug_toolbar.middleware.DebugToolbarMiddleware', )


That's it - start your OH development server.
That's it - restart your OH development server.
./bin/mysite runserver
./bin/mysite runserver

'''Now play with it and start hacking!'''