Simplify settings loading a bit. Remove the things which haven't been working for...
[redakcja.git] / src / redakcja / settings / defaults.py
1 # -*- coding: utf-8 -*-
2 from __future__ import absolute_import
3 import os.path
4
5 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
6
7 DATABASES = {
8     'default': {
9         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
10         'NAME': os.path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
11         'USER': '',                      # Not used with sqlite3.
12         'PASSWORD': '',                  # Not used with sqlite3.
13         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
14         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
15     }
16 }
17
18 DEBUG = False
19
20 MAINTENANCE_MODE = False
21
22 ADMINS = (
23     (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
24 )
25
26 MANAGERS = ADMINS
27
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 # If running in a Windows environment this must be set to the same as your
32 # system time zone.
33 TIME_ZONE = 'Europe/Warsaw'
34
35 # Language code for this installation. All choices can be found here:
36 # http://www.i18nguy.com/unicode/language-identifiers.html
37 LANGUAGE_CODE = 'pl'
38
39 SITE_ID = 1
40
41 # If you set this to False, Django will make some optimizations so as not
42 # to load the internationalization machinery.
43 USE_I18N = True
44 USE_L10N = True
45
46
47 # Absolute path to the directory that holds media.
48 # Example: "/home/media/media.lawrence.com/"
49 MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic'
50 STATIC_ROOT = PROJECT_ROOT + '/../static/'
51
52 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
53 # trailing slash if there is a path component (optional in other cases).
54 # Examples: "http://media.lawrence.com", "http://example.com/media/"
55 MEDIA_URL = '/media/dynamic/'
56 STATIC_URL = '/media/static/'
57
58 SESSION_COOKIE_NAME = "redakcja_sessionid"
59
60 IMAGE_DIR = 'images/'
61
62 BROKER_URL = 'django://'
63
64 SHOW_APP_VERSION = False
65
66 CAS_USER_ATTRS_MAP = {
67     'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}