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.
8 'ENGINE': 'django.db.backends.postgresql',
10 'USER': os.environ.get('POSTGRES_USER'),
11 'PASSWORD': os.environ.get('POSTGRES_PASSWORD'),
12 'NAME': os.environ.get('POSTGRES_USER'),
19 (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
22 INTERNAL_IPS = ['127.0.0.1']
26 # Local time zone for this installation. Choices can be found here:
27 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28 # although not all choices may be available on all operating systems.
29 # If running in a Windows environment this must be set to the same as your
31 TIME_ZONE = 'Europe/Warsaw'
33 # Language code for this installation. All choices can be found here:
34 # http://www.i18nguy.com/unicode/language-identifiers.html
39 # If you set this to False, Django will make some optimizations so as not
40 # to load the internationalization machinery.
45 # Absolute path to the directory that holds media.
46 # Example: "/home/media/media.lawrence.com/"
47 MEDIA_ROOT = '/app/var/media'
48 STATIC_ROOT = '/app/var/static'
49 CATALOGUE_REPO_PATH = '/app/var/dvcs'
50 CATALOGUE_IMAGE_REPO_PATH = '/app/var/dvcs-img'
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/"
56 STATIC_URL = '/static/'
58 SESSION_COOKIE_NAME = "redakcja_sessionid"
63 CAS_APPLY_ATTRIBUTES_TO_USER = True
64 CAS_RENAME_ATTRIBUTES = {
65 'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}
68 LITERARY_DIRECTOR_USERNAME = ''
70 LEGIMI_USERNAME = None
71 LEGIMI_PASSWORD = None
72 LEGIMI_PUBLISHER_ID = None
74 MIN_COVER_SIZE = (800, 800)
76 REMOTE_BUILD_URL = os.environ.get('REMOTE_BUILD_URL')
77 REMOTE_BUILD_TOKEN = os.environ.get('REMOTE_BUILD_TOKEN')