update localsettings + some cleanup
[redakcja.git] / redakcja / localsettings.sample
1 # -*- coding: utf-8 -*-
2 #
3 #  localsettings template for Platforma
4 #
5 #  Duplicate this file as localsettings.py and change it to your liking.
6 #  Settings defined in localsettings.py will override settings from 
7 #  settings.py file. localsettings.py should never be commited 
8 #  to a version control system. Please make changes to settings.py 
9 #  or localsettings.sample instead.
10 #
11
12 import os.path
13
14 from redakcja.settings.common import PROJECT_ROOT
15 from redakcja.settings.compress import PIPELINE
16
17 # Path to repository with managed documents
18 CATALOGUE_REPO_PATH = '/srv/redakcja/books'
19
20 LOGGING_CONFIG_FILE = "/srv/redakcja/logging.cfg.dev"
21
22 BASE_DIR = os.path.dirname(PROJECT_ROOT)
23
24 STATIC_ROOT = os.path.join(BASE_DIR, 'var', 'static')
25 MEDIA_ROOT = os.path.join(BASE_DIR, 'var', 'media')
26 STATIC_URL = '/static/'
27 MEDIA_URL = '/media/'
28
29
30 # Subdirectory of MEDIA_ROOT containing images
31 IMAGE_DIR = 'images/'
32
33 CAS_SERVER_URL = 'http://logowanie.nowoczesnapolska.org.pl/cas/'
34 CAS_VERSION = '1'
35
36 REDMINE_URL = 'http://redmine.nowoczesnapolska.org.pl/'
37
38
39 DEBUG = True
40 MAINTENANCE_MODE = False
41
42 PIPELINE['PIPELINE_ENABLED'] = False
43
44 APICLIENT_WL_CONSUMER_KEY = None
45 APICLIENT_WL_CONSUMER_SECRET = None
46
47 CELERY_ALWAYS_EAGER = True
48
49 SECRET_KEY = 'very secret'
50 ALLOWED_HOSTS = ['*']
51
52 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'