1 # Django settings for panikdb project.
9 PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
12 ('Frederic Peters', 'fred@radiopanik.org'),
19 'ENGINE': 'django.db.backends.sqlite3',
20 'NAME': os.path.join(PROJECT_PATH, 'panikdb.sqlite3'),
24 # Hosts/domain names that are valid for this site; required if DEBUG is False
25 # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
28 # Local time zone for this installation. Choices can be found here:
29 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
30 # although not all choices may be available on all operating systems.
31 # In a Windows environment this must be set to your system time zone.
32 TIME_ZONE = 'Europe/Brussels'
34 # Language code for this installation. All choices can be found here:
35 # http://www.i18nguy.com/unicode/language-identifiers.html
36 LANGUAGE_CODE = 'fr-be'
40 # If you set this to False, Django will make some optimizations so as not
41 # to load the internationalization machinery.
44 # If you set this to False, Django will not format dates, numbers and
45 # calendars according to the current locale.
48 # If you set this to False, Django will not use timezone-aware datetimes.
51 # Absolute filesystem path to the directory that will hold user-uploaded files.
52 # Example: "/var/www/example.com/media/"
53 MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
55 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
57 # Examples: "http://example.com/media/", "http://media.example.com/"
60 # Absolute path to the directory static files should be collected to.
61 # Don't put anything in this directory yourself; store your static files
62 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
63 # Example: "/var/www/example.com/static/"
64 STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
66 # URL prefix for static files.
67 # Example: "http://example.com/static/", "http://static.example.com/"
68 STATIC_URL = '/static/'
70 CKEDITOR_UPLOAD_PATH = 'uploads/'
71 CKEDITOR_UPLOAD_PREFIX = '/media/uploads/'
73 # Additional locations of static files
75 # Put strings here, like "/home/html/static" or "C:/www/django/static".
76 # Always use forward slashes, even on Windows.
77 # Don't forget to use absolute paths, not relative paths.
78 os.path.join(PROJECT_PATH, 'panikdb', 'static'),
81 # List of finder classes that know how to find static files in
83 STATICFILES_FINDERS = (
84 'django.contrib.staticfiles.finders.FileSystemFinder',
85 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
86 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
89 # Make this unique, and don't share it with anybody.
90 SECRET_KEY = '(jwx-1y#d#vps93glikirr&tq_!^_4g+9-qj(jy#l=sllqw(^j'
92 # List of callables that know how to import templates from various sources.
94 'django.template.loaders.filesystem.Loader',
95 'django.template.loaders.app_directories.Loader',
96 # 'django.template.loaders.eggs.Loader',
99 MIDDLEWARE_CLASSES = (
100 'django.middleware.common.CommonMiddleware',
101 'django.contrib.sessions.middleware.SessionMiddleware',
102 'django.middleware.csrf.CsrfViewMiddleware',
103 'django.contrib.auth.middleware.AuthenticationMiddleware',
104 'django.contrib.messages.middleware.MessageMiddleware',
105 # Uncomment the next line for simple clickjacking protection:
106 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
109 ROOT_URLCONF = 'panikdb.urls'
111 # Python dotted path to the WSGI application used by Django's runserver.
112 WSGI_APPLICATION = 'panikdb.wsgi.application'
115 os.path.join(PROJECT_PATH, 'panikdb', 'templates'),
119 'django.contrib.auth',
120 'django.contrib.contenttypes',
121 'django.contrib.sessions',
122 'django.contrib.sites',
123 'django.contrib.messages',
124 'django.contrib.staticfiles',
125 'django.contrib.admin',
132 'django_bootstrap_staticfiles',
138 'panikdb.customtags',
147 # A sample logging configuration. The only tangible logging
148 # performed by this configuration is to send an email to
149 # the site admins on every HTTP 500 error when DEBUG=False.
150 # See http://docs.djangoproject.com/en/dev/topics/logging for
151 # more details on how to customize your logging configuration.
154 'disable_existing_loggers': False,
156 'require_debug_false': {
157 '()': 'django.utils.log.RequireDebugFalse'
163 'filters': ['require_debug_false'],
164 'class': 'django.utils.log.AdminEmailHandler'
169 'handlers': ['mail_admins'],
178 'toolbar_Own': [['Source', 'Format', '-', 'Bold', 'Italic'],
179 ['NumberedList','BulletedList'],
180 ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
188 HAYSTACK_CONNECTIONS = {
190 'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
191 'URL': 'http://127.0.0.1:8985/solr/panik'
197 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
201 TEST_RUNNER = 'django.test.runner.DiscoverRunner'
203 AUTH_USER_MODEL = 'aa.User'
204 LOGIN_REDIRECT_URL = '/'
205 WEBSITE_BASE_URL = 'http://www.radiopanik.org/'
207 NEWSLETTER_SENDER = 'info@radiopanik.org'
208 NEWSLETTER_DOMAIN = 'radiopanik.org'
209 NEWSLETTER_STYLE = """
210 body { color: #222; text-align: justify; }
211 h2, h3 { font-family: "Reglo"; }
212 h3 { margin-bottom: 0; }
213 h3 + p { margin-top: 0; }
214 p strong { color: black; }
215 h3 strong { text-transform: uppercase; color: blue; }
216 p a { color: black; text-decoration: none; border-bottom: 1px dotted black; }
217 p a:hover { border-bottom: 1px solid black; }
222 COMBO_PUBLIC_TEMPLATES = {
225 'template': 'combo/page_template.html',
234 'template': 'combo/page_template_full_width.html',
244 AUTO_RENDER_SELECT2_STATICS = False
247 from local_settings import *
251 if DEBUG and DEBUG_TOOLBAR:
252 MIDDLEWARE_CLASSES += (
253 'debug_toolbar.middleware.DebugToolbarMiddleware',
261 'raven.contrib.django.raven_compat',