|
|
|
@ -83,10 +83,6 @@ INSTALLED_APPS = [
|
|
|
|
|
'analysis',
|
|
|
|
|
'api',
|
|
|
|
|
]
|
|
|
|
|
if DEBUG:
|
|
|
|
|
INSTALLED_APPS += [
|
|
|
|
|
'debug_toolbar',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
|
|
'django.middleware.security.SecurityMiddleware',
|
|
|
|
@ -98,10 +94,6 @@ MIDDLEWARE = [
|
|
|
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
|
|
|
]
|
|
|
|
|
if DEBUG:
|
|
|
|
|
MIDDLEWARE += [
|
|
|
|
|
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'konova.urls'
|
|
|
|
|
|
|
|
|
@ -201,28 +193,6 @@ STATICFILES_DIRS = [
|
|
|
|
|
os.path.join(BASE_DIR, 'templates/map/client/libs'), # NETGIS map client files
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# DJANGO DEBUG TOOLBAR
|
|
|
|
|
INTERNAL_IPS = [
|
|
|
|
|
"127.0.0.1"
|
|
|
|
|
]
|
|
|
|
|
DEBUG_TOOLBAR_CONFIG = {
|
|
|
|
|
"DISABLE_PANELS": {
|
|
|
|
|
'debug_toolbar.panels.versions.VersionsPanel',
|
|
|
|
|
'debug_toolbar.panels.timer.TimerPanel',
|
|
|
|
|
'debug_toolbar.panels.settings.SettingsPanel',
|
|
|
|
|
'debug_toolbar.panels.headers.HeadersPanel',
|
|
|
|
|
'debug_toolbar.panels.request.RequestPanel',
|
|
|
|
|
'debug_toolbar.panels.sql.SQLPanel',
|
|
|
|
|
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
|
|
|
|
|
'debug_toolbar.panels.templates.TemplatesPanel',
|
|
|
|
|
'debug_toolbar.panels.cache.CachePanel',
|
|
|
|
|
'debug_toolbar.panels.signals.SignalsPanel',
|
|
|
|
|
'debug_toolbar.panels.logging.LoggingPanel',
|
|
|
|
|
'debug_toolbar.panels.redirects.RedirectsPanel',
|
|
|
|
|
'debug_toolbar.panels.profiling.ProfilingPanel',
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# EMAIL (see https://docs.djangoproject.com/en/dev/topics/email/)
|
|
|
|
|
|
|
|
|
|
# CHANGE_ME !!! ONLY FOR DEVELOPMENT !!!
|
|
|
|
|