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'Marek Stępniowski', 'marek@stepniowski.com'),
14 # (u'Łukasz Rekucki', 'lrekucki@gmail.com'),
15 (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'),
20 # Local time zone for this installation. Choices can be found here:
21 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
22 # although not all choices may be available on all operating systems.
23 # If running in a Windows environment this must be set to the same as your
25 TIME_ZONE = 'Europe/Warsaw'
27 # Language code for this installation. All choices can be found here:
28 # http://www.i18nguy.com/unicode/language-identifiers.html
32 #locale.setlocale(locale.LC_ALL, '')
36 # If you set this to False, Django will make some optimizations so as not
37 # 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/'
47 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
48 # trailing slash if there is a path component (optional in other cases).
49 # Examples: "http://media.lawrence.com", "http://example.com/media/"
50 MEDIA_URL = '/media/dynamic/'
51 STATIC_URL = '/media/static/'
53 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
55 # Examples: "http://foo.com/media/", "/media/".
56 ADMIN_MEDIA_PREFIX = '/media/admin-media/'
58 # Make this unique, and don't share it with anybody.
59 SECRET_KEY = 'ife@x^_lak+x84=lxtr!-ur$5g$+s6xt85gbbm@e_fk6q3r8=+'
60 SESSION_COOKIE_NAME = "redakcja_sessionid"
62 # List of callables that know how to import templates from various sources.
64 'django.template.loaders.filesystem.Loader',
65 'django.template.loaders.app_directories.Loader',
68 TEMPLATE_CONTEXT_PROCESSORS = (
69 "django.contrib.auth.context_processors.auth",
70 "django.core.context_processors.debug",
71 "django.core.context_processors.i18n",
72 "redakcja.context_processors.settings", # this is instead of media
73 'django.core.context_processors.csrf',
74 "django.core.context_processors.request",
78 MIDDLEWARE_CLASSES = (
79 'django.middleware.common.CommonMiddleware',
80 'django.middleware.csrf.CsrfViewMiddleware',
81 'django.contrib.sessions.middleware.SessionMiddleware',
83 'django.contrib.auth.middleware.AuthenticationMiddleware',
85 'django.middleware.doc.XViewMiddleware',
86 'pagination.middleware.PaginationMiddleware',
87 'maintenancemode.middleware.MaintenanceModeMiddleware',
90 AUTHENTICATION_BACKENDS = (
91 'django.contrib.auth.backends.ModelBackend',
94 ROOT_URLCONF = 'redakcja.urls'
97 PROJECT_ROOT + '/templates',
100 FIREPYTHON_LOGGER_NAME = "fnp"
103 'django.contrib.auth',
104 'django.contrib.contenttypes',
105 'django.contrib.sessions',
106 'django.contrib.sites',
107 'django.contrib.admin',
108 'django.contrib.admindocs',
109 'django.contrib.comments',
125 LOGIN_REDIRECT_URL = '/documents/user'
128 FILEBROWSER_URL_FILEBROWSER_MEDIA = STATIC_URL + 'filebrowser/'
129 FILEBROWSER_DIRECTORY = 'images/'
130 FILEBROWSER_ADMIN_VERSIONS = []
131 FILEBROWSER_VERSIONS_BASEDIR = 'thumbnails/'
132 FILEBROWSER_DEFAULT_ORDER = "path_relative"
134 # REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books'
139 "URL": "http://localhost:7000/api/",
140 "AUTH_REALM": "WL API",
141 "AUTH_USER": "platforma",
142 "AUTH_PASSWD": "platforma",
145 SHOW_APP_VERSION = False
148 from redakcja.settings.compress import *