1 # -*- coding: utf-8 -*-
2 from __future__ import absolute_import
5 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
10 MAINTENANCE_MODE = False
13 (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
18 # Local time zone for this installation. Choices can be found here:
19 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
20 # although not all choices may be available on all operating systems.
21 # If running in a Windows environment this must be set to the same as your
23 TIME_ZONE = 'Europe/Warsaw'
25 # Language code for this installation. All choices can be found here:
26 # http://www.i18nguy.com/unicode/language-identifiers.html
30 #locale.setlocale(locale.LC_ALL, '')
34 # If you set this to False, Django will make some optimizations so as not
35 # to load the internationalization machinery.
43 # Absolute path to the directory that holds media.
44 # Example: "/home/media/media.lawrence.com/"
45 MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic'
46 STATIC_ROOT = PROJECT_ROOT + '/../static/'
49 PROJECT_ROOT + '/static/'
53 PROJECT_ROOT + '/locale/',
56 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
57 # trailing slash if there is a path component (optional in other cases).
58 # Examples: "http://media.lawrence.com", "http://example.com/media/"
59 MEDIA_URL = '/media/dynamic/'
60 STATIC_URL = '/media/static/'
62 SESSION_COOKIE_NAME = "redakcja_sessionid"
64 # List of callables that know how to import templates from various sources.
66 'django.template.loaders.filesystem.Loader',
67 'django.template.loaders.app_directories.Loader',
70 TEMPLATE_CONTEXT_PROCESSORS = (
71 "django.contrib.auth.context_processors.auth",
72 "django.core.context_processors.debug",
73 "django.core.context_processors.i18n",
74 "redakcja.context_processors.settings", # this is instead of media
75 'django.core.context_processors.csrf',
76 "django.core.context_processors.request",
80 MIDDLEWARE_CLASSES = (
81 'django.middleware.common.CommonMiddleware',
82 'django.middleware.csrf.CsrfViewMiddleware',
83 'django.contrib.sessions.middleware.SessionMiddleware',
84 'django.contrib.messages.middleware.MessageMiddleware',
85 'django.middleware.locale.LocaleMiddleware',
87 'django.contrib.auth.middleware.AuthenticationMiddleware',
88 #'django_cas.middleware.CASMiddleware',
90 'django.contrib.admindocs.middleware.XViewMiddleware',
91 'pagination.middleware.PaginationMiddleware',
92 #'maintenancemode.middleware.MaintenanceModeMiddleware',
93 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
96 #AUTHENTICATION_BACKENDS = (
97 # 'django.contrib.auth.backends.ModelBackend',
98 # 'fnpdjango.auth_backends.AttrCASBackend',
101 ROOT_URLCONF = 'redakcja.urls'
104 PROJECT_ROOT + '/templates',
107 FIREPYTHON_LOGGER_NAME = "fnp"
110 'django.contrib.auth',
111 'django.contrib.contenttypes',
112 'django.contrib.sessions',
113 'django.contrib.messages',
114 'django.contrib.staticfiles',
115 'django.contrib.sites',
116 'django.contrib.admin',
117 'django.contrib.admindocs',
118 'django.contrib.flatpages',
119 #'django.contrib.comments',
125 #'kombu.transport.django',
140 'django_forms_bootstrap',
141 'forms_builder.forms',
145 LOGIN_REDIRECT_URL = '/'
147 #CAS_USER_ATTRS_MAP = {
148 # 'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}
150 # REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books'
152 IMAGE_DIR = 'images/'
156 #djcelery.setup_loader()
158 BROKER_BACKEND = "djkombu.transport.DatabaseTransport"
159 BROKER_HOST = "localhost"
161 BROKER_USER = "guest"
162 BROKER_PASSWORD = "guest"
165 SHOW_APP_VERSION = False
168 FORMS_BUILDER_EDITABLE_SLUGS = True
169 FORMS_BUILDER_LABEL_MAX_LENGTH = 2048
174 from redakcja.settings.compress import *