1 # -*- coding: utf-8 -*-
2 from __future__ import absolute_import
5 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
9 MAINTENANCE_MODE = False
12 (u'Jan Szejko', 'jan.szejko@nowoczesnapolska.org.pl'),
17 # Local time zone for this installation. Choices can be found here:
18 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
19 # although not all choices may be available on all operating systems.
20 # If running in a Windows environment this must be set to the same as your
22 TIME_ZONE = 'Europe/Warsaw'
24 # Language code for this installation. All choices can be found here:
25 # http://www.i18nguy.com/unicode/language-identifiers.html
29 # locale.setlocale(locale.LC_ALL, '')
33 # If you set this to False, Django will make some optimizations so as not
34 # to load the internationalization machinery.
42 # Absolute path to the directory that holds media.
43 # Example: "/home/media/media.lawrence.com/"
44 MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic'
45 STATIC_ROOT = PROJECT_ROOT + '/../static/'
48 PROJECT_ROOT + '/static/'
52 PROJECT_ROOT + '/locale/',
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 'BACKEND': 'django.template.backends.django.DjangoTemplates',
67 os.path.join(PROJECT_ROOT, 'templates'),
71 'context_processors': [
72 "django.contrib.auth.context_processors.auth",
73 "django.template.context_processors.debug",
74 "django.template.context_processors.i18n",
75 "redakcja.context_processors.settings", # this is instead of media
76 'django.template.context_processors.csrf',
77 "django.template.context_processors.request",
83 MIDDLEWARE_CLASSES = (
84 'django.middleware.common.CommonMiddleware',
85 'django.middleware.csrf.CsrfViewMiddleware',
86 'django.contrib.sessions.middleware.SessionMiddleware',
87 'django.contrib.messages.middleware.MessageMiddleware',
88 'django.middleware.locale.LocaleMiddleware',
90 'django.contrib.auth.middleware.AuthenticationMiddleware',
91 # 'django_cas.middleware.CASMiddleware',
93 'django.contrib.admindocs.middleware.XViewMiddleware',
94 'fnp_django_pagination.middleware.PaginationMiddleware',
95 # 'maintenancemode.middleware.MaintenanceModeMiddleware',
96 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
99 # AUTHENTICATION_BACKENDS = (
100 # 'django.contrib.auth.backends.ModelBackend',
101 # 'fnpdjango.auth_backends.AttrCASBackend',
104 ROOT_URLCONF = 'redakcja.urls'
106 FIREPYTHON_LOGGER_NAME = "fnp"
109 'django.contrib.auth',
110 'django.contrib.contenttypes',
111 'django.contrib.sessions',
112 'django.contrib.messages',
113 'django.contrib.staticfiles',
114 'django.contrib.sites',
115 'django.contrib.admin',
116 'django.contrib.admindocs',
117 'django.contrib.flatpages',
118 # 'django.contrib.comments',
122 'fnp_django_pagination',
124 # 'kombu.transport.django',
129 'constance.backends.database',
142 'django_forms_bootstrap',
143 'forms_builder.forms',
147 LOGIN_REDIRECT_URL = '/'
149 # CAS_USER_ATTRS_MAP = {
150 # 'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}
152 # REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books'
154 IMAGE_DIR = 'images/'
158 # djcelery.setup_loader()
160 BROKER_BACKEND = "djkombu.transport.DatabaseTransport"
161 BROKER_HOST = "localhost"
163 BROKER_USER = "guest"
164 BROKER_PASSWORD = "guest"
167 SHOW_APP_VERSION = False
170 FORMS_BUILDER_EDITABLE_SLUGS = True
171 FORMS_BUILDER_LABEL_MAX_LENGTH = 2048
175 from redakcja.settings.compress import *