fix
[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 ADMINS = (
22     (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
23 )
24
25 INTERNAL_IPS = ['127.0.0.1']
26
27 MANAGERS = ADMINS
28
29 # Local time zone for this installation. Choices can be found here:
30 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
31 # although not all choices may be available on all operating systems.
32 # If running in a Windows environment this must be set to the same as your
33 # system time zone.
34 TIME_ZONE = 'Europe/Warsaw'
35
36 # Language code for this installation. All choices can be found here:
37 # http://www.i18nguy.com/unicode/language-identifiers.html
38 LANGUAGE_CODE = 'pl'
39
40 SITE_ID = 1
41
42 # If you set this to False, Django will make some optimizations so as not
43 # to load the internationalization machinery.
44 USE_I18N = True
45 USE_L10N = True
46
47
48 # Absolute path to the directory that holds media.
49 # Example: "/home/media/media.lawrence.com/"
50 MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic'
51 STATIC_ROOT = PROJECT_ROOT + '/../static/'
52
53 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
54 # trailing slash if there is a path component (optional in other cases).
55 # Examples: "http://media.lawrence.com", "http://example.com/media/"
56 MEDIA_URL = '/media/dynamic/'
57 STATIC_URL = '/media/static/'
58
59 SESSION_COOKIE_NAME = "redakcja_sessionid"
60
61 IMAGE_DIR = 'images/'
62
63 BROKER_URL = 'django://'
64
65 SHOW_APP_VERSION = False
66
67 CAS_APPLY_ATTRIBUTES_TO_USER = True
68 CAS_RENAME_ATTRIBUTES = {
69     'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}
70
71
72 LITERARY_DIRECTOR_USERNAME = ''
73
74 LEGIMI_USERNAME = None
75 LEGIMI_PASSWORD = None
76 LEGIMI_PUBLISHER_ID = None
77