forked from TabbycatDebate/tabbycat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_settings.example
99 lines (80 loc) · 2.33 KB
/
local_settings.example
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import os
LOCAL_SETTINGS = True
from settings import *
# ============================
# = Overwrites main settings =
# ============================
ADMINS = ()
MANAGERS = ADMINS
DEBUG = True
DEBUG_ASSETS = True
LIVE_RELOAD = False
# ===========================
# = Django-specific Modules =
# ===========================
INTERNAL_IPS = (
'0.0.0.0',
'127.0.0.1'
)
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
INSTALLED_APPS += (
'debug_toolbar',
)
# ===========
# = Caching =
# ===========
PUBLIC_PAGE_CACHE_TIMEOUT = 1
TAB_PAGES_CACHE_TIMEOUT = 1
CACHES = { # Use a dummy cache in development
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}
# Don't used the cached loader otherwise updating templates is a pain
TEMPLATES[0]['OPTIONS']['loaders'] = [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
]
# =============
# = Pipelines =
# =============
LIBSASS_OUTPUT_STYLE = 'nested'
# =================
# = Debug Toolbar =
# =================
DEBUG_TOOLBAR_PATCH_SETTINGS = False
DEBUG_TOOLBAR_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_CONFIG = {
'INTERCEPT_REDIRECTS': False,
'JQUERY_URL': '/static/js/vendor/jquery-2.2.0.min.js', # Enables offline work
}
# =====================
# = Database Settings =
# =====================
SECRET_KEY = '#2q43u&tp4((4&m3i8v%w-6z6pp7m(v0-6@w@i!j5n)n15epwc'
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.postgresql_psycopg2',
'NAME' : '',
'USER' : '',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '5432',
'CONN_MAX_AGE': 600,
}
}