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.
6 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
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.
21 MAINTENANCE_MODE = False
24 (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
27 INTERNAL_IPS = ['127.0.0.1']
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
36 TIME_ZONE = 'Europe/Warsaw'
38 # Language code for this installation. All choices can be found here:
39 # http://www.i18nguy.com/unicode/language-identifiers.html
44 # If you set this to False, Django will make some optimizations so as not
45 # to load the internationalization machinery.
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/'
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/'
61 SESSION_COOKIE_NAME = "redakcja_sessionid"
65 BROKER_URL = 'django://'
67 SHOW_APP_VERSION = False
69 CAS_APPLY_ATTRIBUTES_TO_USER = True
70 CAS_RENAME_ATTRIBUTES = {
71 'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}