3 from sentry_sdk.integrations.django import DjangoIntegration
4 from .defaults import *
5 from ..localsettings import *
7 PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
10 PROJECT_ROOT + '/static/'
15 'BACKEND': 'django.template.backends.django.DjangoTemplates',
18 PROJECT_ROOT + '/templates',
21 'context_processors': [
22 "django.contrib.auth.context_processors.auth",
23 "django.template.context_processors.debug",
24 "django.template.context_processors.i18n",
25 "redakcja.context_processors.settings", # this is instead of media
26 'django.template.context_processors.csrf',
27 "django.template.context_processors.request",
28 "django.contrib.messages.context_processors.messages",
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',
71 'fnp_django_pagination',
89 INSTALLED_APPS += ('debug_toolbar',)
91 LOGIN_REDIRECT_URL = '/documents/user'
93 MIN_COVER_SIZE = (915, 1270)
95 STATICFILES_FINDERS = (
96 'django.contrib.staticfiles.finders.FileSystemFinder',
97 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
98 'pipeline.finders.PipelineFinder',
101 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
104 'CSS_COMPRESSOR': None,
105 'JS_COMPRESSOR': None,
107 # CSS and JS files to compress
110 'source_filenames': (
117 'css/jquery.autocomplete.css',
118 'css/imgareaselect-default.css',
121 'output_filename': 'compressed/detail_styles.css',
124 'source_filenames': (
127 'output_filename': 'compressed/catalogue_styles.css',
130 'source_filenames': (
133 'output_filename': 'compressed/book.css',
136 'source_filenames': (
137 'contextmenu/jquery.contextMenu.css',
140 'output_filename': 'compressed/book_list.css',
144 # everything except codemirror
146 'source_filenames': (
148 'js/lib/jquery/jquery.autocomplete.js',
149 'js/lib/jquery/jquery.blockui.js',
150 'js/lib/jquery/jquery.elastic.js',
151 'js/lib/jquery/jquery.xmlns.js',
152 'js/button_scripts.js',
156 'js/wiki/wikiapi.js',
161 'js/wiki/toolbar.js',
164 'js/wiki/dialog_save.js',
165 'js/wiki/dialog_revert.js',
166 'js/wiki/dialog_pubmark.js',
169 'js/wiki/view_history.js',
170 'js/wiki/view_summary.js',
171 'js/wiki/view_editor_source.js',
172 'js/wiki/view_editor_wysiwyg.js',
173 'js/wiki/view_gallery.js',
174 'js/wiki/view_annotations.js',
175 'js/wiki/view_search.js',
176 'js/wiki/view_column_diff.js',
178 'output_filename': 'compressed/detail_scripts.js',
181 'source_filenames': (
183 'js/lib/jquery-1.4.2.min.js',
184 'js/lib/jquery/jquery.autocomplete.js',
185 'js/lib/jquery/jquery.blockui.js',
186 'js/lib/jquery/jquery.elastic.js',
187 'js/lib/jquery/jquery.imgareaselect.js',
188 'js/button_scripts.js',
192 'js/wiki_img/wikiapi.js',
195 'js/wiki_img/base.js',
196 'js/wiki/toolbar.js',
199 'js/wiki/dialog_save.js',
200 'js/wiki/dialog_revert.js',
201 'js/wiki/dialog_pubmark.js',
204 'js/wiki_img/view_editor_objects.js',
205 'js/wiki_img/view_editor_motifs.js',
206 'js/wiki/view_editor_source.js',
207 'js/wiki/view_history.js',
208 'js/wiki/view_column_diff.js',
210 'output_filename': 'compressed/detail_img_scripts.js',
213 'source_filenames': (
214 'js/catalogue/catalogue.js',
216 'email_mangler/email_mangler.js',
218 'output_filename': 'compressed/catalogue_scripts.js',
221 'source_filenames': (
222 'js/book_text/jquery.eventdelegation.js',
223 'js/book_text/jquery.scrollto.js',
224 'js/book_text/jquery.highlightfade.js',
225 'js/book_text/book.js',
227 'output_filename': 'compressed/book.js',
230 'source_filenames': (
231 'contextmenu/jquery.ui.position.js',
232 'contextmenu/jquery.contextMenu.js',
233 'js/catalogue/book_list.js',
235 'output_filename': 'compressed/book_list.js',
248 integrations=[DjangoIntegration()]