Some housekeeping
[redakcja.git] / src / redakcja / settings / defaults.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 import os.path
5
6 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
7
8 DATABASES = {
9     'default': {
10         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
11         'NAME': os.path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
12         'USER': '',                      # Not used with sqlite3.
13         'PASSWORD': '',                  # Not used with sqlite3.
14         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
15         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
16     }
17 }
18
19 DEBUG = False
20
21 MAINTENANCE_MODE = False
22
23 ADMINS = (
24     (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
25 )
26
27 INTERNAL_IPS = ['127.0.0.1']
28
29 MANAGERS = ADMINS
30
31 # Local time zone for this installation. Choices can be found here:
32 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
33 # although not all choices may be available on all operating systems.
34 # If running in a Windows environment this must be set to the same as your
35 # system time zone.
36 TIME_ZONE = 'Europe/Warsaw'
37
38 # Language code for this installation. All choices can be found here:
39 # http://www.i18nguy.com/unicode/language-identifiers.html
40 LANGUAGE_CODE = 'pl'
41
42 SITE_ID = 1
43
44 # If you set this to False, Django will make some optimizations so as not
45 # to load the internationalization machinery.
46 USE_I18N = True
47 USE_L10N = True
48
49
50 # Absolute path to the directory that holds media.
51 # Example: "/home/media/media.lawrence.com/"
52 MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic'
53 STATIC_ROOT = PROJECT_ROOT + '/../static/'
54
55 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
56 # trailing slash if there is a path component (optional in other cases).
57 # Examples: "http://media.lawrence.com", "http://example.com/media/"
58 MEDIA_URL = '/media/dynamic/'
59 STATIC_URL = '/media/static/'
60
61 SESSION_COOKIE_NAME = "redakcja_sessionid"
62
63 IMAGE_DIR = 'images/'
64
65 BROKER_URL = 'django://'
66
67 SHOW_APP_VERSION = False
68
69 CAS_APPLY_ATTRIBUTES_TO_USER = True
70 CAS_RENAME_ATTRIBUTES = {
71     'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}