Blame
|
1 | # DJANGO Debug Toolbar |
||||||
| 2 | ||||||||
| 3 | ## Installation |
|||||||
| 4 | ||||||||
| 5 | 1. Django Debug Toolbar installieren |
|||||||
| 6 | `pip install django-debug-toolbar` |
|||||||
| 7 | ||||||||
| 8 | 2. Settings.py für Development anpassen |
|||||||
| 9 | ```python |
|||||||
| 10 | INSTALLED_APPS += [ |
|||||||
| 11 | "debug_toolbar", |
|||||||
| 12 | ] |
|||||||
| 13 | MIDDLEWARE = [ |
|||||||
| 14 | "debug_toolbar.middleware.DebugToolbarMiddleware", |
|||||||
| 15 | *MIDDLEWARE, |
|||||||
| 16 | ] |
|||||||
| 17 | INTERNAL_IPS = [ |
|||||||
| 18 | "127.0.0.1", |
|||||||
| 19 | "<ip of windows pc>", |
|||||||
| 20 | ] |
|||||||
| 21 | ``` |
|||||||
| 22 | :::warning |
|||||||
| 23 | Either config only if Debug=True or in special settings for development! |
|||||||
| 24 | ::: |
|||||||
