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 |
== 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 |
Look under INSTALLED_APPS and find the commented line 'debug_toolbar', and comment it |
||
( /debug_toolbar # finds the spot to |
( /debug_toolbar # finds the spot to comment #'debug_toolbar',) |
||
Look under MIDDLEWARE_CLASSES and find the |
Look under MIDDLEWARE_CLASSES and find the line 'debug_toolbar.middleware.DebugToolbarMiddleware', comment it also. |
||
( /debug/n # finds the spot to |
( /debug/n # finds the spot to comment #'debug_toolbar.middleware.DebugToolbarMiddleware', ) |
||
That's it - |
That's it - restart your OH development server. |
||
./bin/mysite runserver |
./bin/mysite runserver |
||
'''Now play with it and start hacking!''' |