-
Notifications
You must be signed in to change notification settings - Fork 3
/
debugger.py
42 lines (30 loc) · 1.31 KB
/
debugger.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import local_settings
from local_settings import *
if DEBUG:
import sys
import os
DEBUG_DIR = "/home/shaastra/django-debug-toolbar/"
if not DEBUG_DIR in sys.path:
sys.path.append(DEBUG_DIR)
TEMPLATE_DIRS = list(TEMPLATE_DIRS)
TEMPLATE_DIRS.append(DEBUG_DIR + "debug_toolbar/templates")
TEMPLATE_DIRS = tuple(TEMPLATE_DIRS)
MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES)
MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware')
MIDDLEWARE_CLASSES = tuple(MIDDLEWARE_CLASSES)
#Kabhi = 117.192.179.42
#Serup = 117.193.5.17
#Please add your name and ip as comment before adding to this tuple
INTERNAL_IPS = ('127.0.0.1','117.192.179.42','117.193.5.17')
DATABASE_ENGINE = 'mysql'
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)