1 # -*- coding: utf-8 -*-
2 from __future__ import absolute_import
4 from .defaults import *
5 from ..localsettings import *
8 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
11 PROJECT_ROOT + '/static/'
16 'BACKEND': 'django.template.backends.django.DjangoTemplates',
19 PROJECT_ROOT + '/templates',
22 'context_processors': [
23 "django.contrib.auth.context_processors.auth",
24 "django.template.context_processors.debug",
25 "django.template.context_processors.i18n",
26 "redakcja.context_processors.settings", # this is instead of media
27 'django.template.context_processors.csrf',
28 "django.template.context_processors.request",
35 'django.middleware.common.CommonMiddleware',
36 'django.middleware.csrf.CsrfViewMiddleware',
37 'django.contrib.sessions.middleware.SessionMiddleware',
38 'django.contrib.messages.middleware.MessageMiddleware',
40 'django.contrib.auth.middleware.AuthenticationMiddleware',
41 'django_cas_ng.middleware.CASMiddleware',
43 'django.contrib.admindocs.middleware.XViewMiddleware',
44 'fnp_django_pagination.middleware.PaginationMiddleware',
45 'maintenancemode.middleware.MaintenanceModeMiddleware',
50 'debug_toolbar.middleware.DebugToolbarMiddleware',
53 AUTHENTICATION_BACKENDS = (
54 'django.contrib.auth.backends.ModelBackend',
55 'django_cas_ng.backends.CASBackend',
58 ROOT_URLCONF = 'redakcja.urls'
61 'django.contrib.auth',
62 'django.contrib.contenttypes',
63 'django.contrib.sessions',
64 'django.contrib.messages',
65 'django.contrib.staticfiles',
66 'django.contrib.sites',
67 'django.contrib.admin',
68 'django.contrib.admindocs',
69 'raven.contrib.django.raven_compat',
72 'fnp_django_pagination',
90 INSTALLED_APPS += ('debug_toolbar',)
92 LOGIN_REDIRECT_URL = '/documents/user'
94 MIN_COVER_SIZE = (915, 1270)
96 STATICFILES_FINDERS = (
97 'django.contrib.staticfiles.finders.FileSystemFinder',
98 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
99 'pipeline.finders.PipelineFinder',
102 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
105 'CSS_COMPRESSOR': None,
106 'JS_COMPRESSOR': None,
108 # CSS and JS files to compress
111 'source_filenames': (
118 'css/jquery.autocomplete.css',
119 'css/imgareaselect-default.css',
122 'output_filename': 'compressed/detail_styles.css',
125 'source_filenames': (
128 'output_filename': 'compressed/catalogue_styles.css',
131 'source_filenames': (
134 'output_filename': 'compressed/book.css',
137 'source_filenames': (
138 'contextmenu/jquery.contextMenu.css',
141 'output_filename': 'compressed/book_list.css',
145 # everything except codemirror
147 'source_filenames': (
149 'js/lib/jquery/jquery.autocomplete.js',
150 'js/lib/jquery/jquery.blockui.js',
151 'js/lib/jquery/jquery.elastic.js',
152 'js/lib/jquery/jquery.xmlns.js',
153 'js/button_scripts.js',
157 'js/wiki/wikiapi.js',
162 'js/wiki/toolbar.js',
165 'js/wiki/dialog_save.js',
166 'js/wiki/dialog_revert.js',
167 'js/wiki/dialog_pubmark.js',
170 'js/wiki/view_history.js',
171 'js/wiki/view_summary.js',
172 'js/wiki/view_editor_source.js',
173 'js/wiki/view_editor_wysiwyg.js',
174 'js/wiki/view_gallery.js',
175 'js/wiki/view_annotations.js',
176 'js/wiki/view_search.js',
177 'js/wiki/view_column_diff.js',
179 'output_filename': 'compressed/detail_scripts.js',
182 'source_filenames': (
184 'js/lib/jquery-1.4.2.min.js',
185 'js/lib/jquery/jquery.autocomplete.js',
186 'js/lib/jquery/jquery.blockui.js',
187 'js/lib/jquery/jquery.elastic.js',
188 'js/lib/jquery/jquery.imgareaselect.js',
189 'js/button_scripts.js',
193 'js/wiki_img/wikiapi.js',
196 'js/wiki_img/base.js',
197 'js/wiki/toolbar.js',
200 'js/wiki/dialog_save.js',
201 'js/wiki/dialog_revert.js',
202 'js/wiki/dialog_pubmark.js',
205 'js/wiki_img/view_editor_objects.js',
206 'js/wiki_img/view_editor_motifs.js',
207 'js/wiki/view_editor_source.js',
208 'js/wiki/view_history.js',
209 'js/wiki/view_column_diff.js',
211 'output_filename': 'compressed/detail_img_scripts.js',
214 'source_filenames': (
215 'js/catalogue/catalogue.js',
217 'email_mangler/email_mangler.js',
219 'output_filename': 'compressed/catalogue_scripts.js',
222 'source_filenames': (
223 'js/book_text/jquery.eventdelegation.js',
224 'js/book_text/jquery.scrollto.js',
225 'js/book_text/jquery.highlightfade.js',
226 'js/book_text/book.js',
228 'output_filename': 'compressed/book.js',
231 'source_filenames': (
232 'contextmenu/jquery.ui.position.js',
233 'contextmenu/jquery.contextMenu.js',
234 'js/catalogue/book_list.js',
236 'output_filename': 'compressed/book_list.js',