1 # -*- coding: utf-8 -*-
2 from __future__ import absolute_import
4 from redakcja.settings.defaults import *
5 from redakcja.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",
34 MIDDLEWARE_CLASSES = (
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.middleware.CASMiddleware',
43 'django.contrib.admindocs.middleware.XViewMiddleware',
44 'fnp_django_pagination.middleware.PaginationMiddleware',
45 'maintenancemode.middleware.MaintenanceModeMiddleware',
49 MIDDLEWARE_CLASSES = (
50 'debug_toolbar.middleware.DebugToolbarMiddleware',
51 ) + MIDDLEWARE_CLASSES
53 AUTHENTICATION_BACKENDS = (
54 'django.contrib.auth.backends.ModelBackend',
55 'fnpdjango.auth_backends.AttrCASBackend',
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',
75 'kombu.transport.django',
90 INSTALLED_APPS += ('debug_toolbar',)
92 LOGIN_REDIRECT_URL = '/documents/user'
94 CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
95 CELERY_SEND_TASK_ERROR_EMAILS = True
96 CELERY_ACCEPT_CONTENT = ['pickle'] # Remove when all tasks jsonable.
98 MIN_COVER_SIZE = (915, 1270)
100 STATICFILES_FINDERS = (
101 'django.contrib.staticfiles.finders.FileSystemFinder',
102 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
103 'pipeline.finders.PipelineFinder',
106 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
109 'CSS_COMPRESSOR': None,
110 'JS_COMPRESSOR': None,
112 # CSS and JS files to compress
115 'source_filenames': (
122 'css/jquery.autocomplete.css',
123 'css/imgareaselect-default.css',
126 'output_filename': 'compressed/detail_styles.css',
129 'source_filenames': (
132 'output_filename': 'compressed/catalogue_styles.css',
135 'source_filenames': (
138 'output_filename': 'compressed/book.css',
141 'source_filenames': (
142 'contextmenu/jquery.contextMenu.css',
145 'output_filename': 'compressed/book_list.css',
149 # everything except codemirror
151 'source_filenames': (
153 'js/lib/jquery/jquery.autocomplete.js',
154 'js/lib/jquery/jquery.blockui.js',
155 'js/lib/jquery/jquery.elastic.js',
156 'js/lib/jquery/jquery.xmlns.js',
157 'js/button_scripts.js',
161 'js/wiki/wikiapi.js',
166 'js/wiki/toolbar.js',
169 'js/wiki/dialog_save.js',
170 'js/wiki/dialog_revert.js',
171 'js/wiki/dialog_pubmark.js',
174 'js/wiki/view_history.js',
175 'js/wiki/view_summary.js',
176 'js/wiki/view_editor_source.js',
177 'js/wiki/view_editor_wysiwyg.js',
178 'js/wiki/view_gallery.js',
179 'js/wiki/view_annotations.js',
180 'js/wiki/view_search.js',
181 'js/wiki/view_column_diff.js',
183 'output_filename': 'compressed/detail_scripts.js',
186 'source_filenames': (
188 'js/lib/jquery-1.4.2.min.js',
189 'js/lib/jquery/jquery.autocomplete.js',
190 'js/lib/jquery/jquery.blockui.js',
191 'js/lib/jquery/jquery.elastic.js',
192 'js/lib/jquery/jquery.imgareaselect.js',
193 'js/button_scripts.js',
197 'js/wiki_img/wikiapi.js',
200 'js/wiki_img/base.js',
201 'js/wiki/toolbar.js',
204 'js/wiki/dialog_save.js',
205 'js/wiki/dialog_revert.js',
206 'js/wiki/dialog_pubmark.js',
209 'js/wiki_img/view_editor_objects.js',
210 'js/wiki_img/view_editor_motifs.js',
211 'js/wiki/view_editor_source.js',
212 'js/wiki/view_history.js',
213 'js/wiki/view_column_diff.js',
215 'output_filename': 'compressed/detail_img_scripts.js',
218 'source_filenames': (
219 'js/catalogue/catalogue.js',
221 'email_mangler/email_mangler.js',
223 'output_filename': 'compressed/catalogue_scripts.js',
226 'source_filenames': (
227 'js/book_text/jquery.eventdelegation.js',
228 'js/book_text/jquery.scrollto.js',
229 'js/book_text/jquery.highlightfade.js',
230 'js/book_text/book.js',
232 'output_filename': 'compressed/book.js',
235 'source_filenames': (
236 'contextmenu/jquery.ui.position.js',
237 'contextmenu/jquery.contextMenu.js',
238 'js/catalogue/book_list.js',
240 'output_filename': 'compressed/book_list.js',