@@ -32,9 +32,9 @@ Installation
32
32
33
33
#. Add the `debug_toolbar ` directory to your Python path.
34
34
35
- #. Add the following middleware to your project's `settings.py ` file:
35
+ #. Add the following middleware to your project's `settings.py ` file::
36
36
37
- `` 'debug_toolbar.middleware.DebugToolbarMiddleware', ``
37
+ 'debug_toolbar.middleware.DebugToolbarMiddleware',
38
38
39
39
Tying into middleware allows each panel to be instantiated on request and
40
40
rendering to happen on response.
@@ -53,7 +53,7 @@ Installation
53
53
toolbar will not show up on flatpages.
54
54
55
55
#. Make sure your IP is listed in the `INTERNAL_IPS ` setting. If you are
56
- working locally this will be:
56
+ working locally this will be::
57
57
58
58
INTERNAL_IPS = ('127.0.0.1',)
59
59
@@ -62,8 +62,12 @@ Installation
62
62
your own logic for displaying the toolbar.
63
63
64
64
#. Add `debug_toolbar ` to your `INSTALLED_APPS ` setting so Django can find the
65
- template files associated with the Debug Toolbar.
65
+ template files associated with the Debug Toolbar::
66
66
67
+ INSTALLED_APPS = (
68
+ ...
69
+ 'debug_toolbar',
70
+ )
67
71
Alternatively, add the path to the debug toolbar templates
68
72
(``'path/to/debug_toolbar/templates' `` to your ``TEMPLATE_DIRS `` setting.)
69
73
0 commit comments