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",
34 'django.middleware.common.CommonMiddleware',
35 'django.middleware.csrf.CsrfViewMiddleware',
36 'django.contrib.sessions.middleware.SessionMiddleware',
37 'django.contrib.messages.middleware.MessageMiddleware',
39 'django.contrib.auth.middleware.AuthenticationMiddleware',
40 'django_cas_ng.middleware.CASMiddleware',
42 'django.contrib.admindocs.middleware.XViewMiddleware',
43 'fnp_django_pagination.middleware.PaginationMiddleware',
44 'maintenancemode.middleware.MaintenanceModeMiddleware',
49 'debug_toolbar.middleware.DebugToolbarMiddleware',
52 AUTHENTICATION_BACKENDS = (
53 'django.contrib.auth.backends.ModelBackend',
54 'django_cas_ng.backends.CASBackend',
57 ROOT_URLCONF = 'redakcja.urls'
60 'django.contrib.auth',
61 'django.contrib.contenttypes',
62 'django.contrib.sessions',
63 'django.contrib.messages',
64 'django.contrib.staticfiles',
65 'django.contrib.sites',
66 'django.contrib.admin',
67 'django.contrib.admindocs',
70 'fnp_django_pagination',
88 INSTALLED_APPS += ('debug_toolbar',)
90 LOGIN_REDIRECT_URL = '/documents/user'
92 MIN_COVER_SIZE = (915, 1270)
94 STATICFILES_FINDERS = (
95 'django.contrib.staticfiles.finders.FileSystemFinder',
96 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
97 'pipeline.finders.PipelineFinder',
100 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
103 'CSS_COMPRESSOR': None,
104 'JS_COMPRESSOR': None,
106 # CSS and JS files to compress
109 'source_filenames': (
116 'css/jquery.autocomplete.css',
117 'css/imgareaselect-default.css',
120 'output_filename': 'compressed/detail_styles.css',
123 'source_filenames': (
126 'output_filename': 'compressed/catalogue_styles.css',
129 'source_filenames': (
132 'output_filename': 'compressed/book.css',
135 'source_filenames': (
136 'contextmenu/jquery.contextMenu.css',
139 'output_filename': 'compressed/book_list.css',
143 # everything except codemirror
145 'source_filenames': (
147 'js/lib/jquery/jquery.autocomplete.js',
148 'js/lib/jquery/jquery.blockui.js',
149 'js/lib/jquery/jquery.elastic.js',
150 'js/lib/jquery/jquery.xmlns.js',
151 'js/button_scripts.js',
155 'js/wiki/wikiapi.js',
160 'js/wiki/toolbar.js',
163 'js/wiki/dialog_save.js',
164 'js/wiki/dialog_revert.js',
165 'js/wiki/dialog_pubmark.js',
168 'js/wiki/view_history.js',
169 'js/wiki/view_summary.js',
170 'js/wiki/view_editor_source.js',
171 'js/wiki/view_editor_wysiwyg.js',
172 'js/wiki/view_gallery.js',
173 'js/wiki/view_annotations.js',
174 'js/wiki/view_search.js',
175 'js/wiki/view_column_diff.js',
177 'output_filename': 'compressed/detail_scripts.js',
180 'source_filenames': (
182 'js/lib/jquery-1.4.2.min.js',
183 'js/lib/jquery/jquery.autocomplete.js',
184 'js/lib/jquery/jquery.blockui.js',
185 'js/lib/jquery/jquery.elastic.js',
186 'js/lib/jquery/jquery.imgareaselect.js',
187 'js/button_scripts.js',
191 'js/wiki_img/wikiapi.js',
194 'js/wiki_img/base.js',
195 'js/wiki/toolbar.js',
198 'js/wiki/dialog_save.js',
199 'js/wiki/dialog_revert.js',
200 'js/wiki/dialog_pubmark.js',
203 'js/wiki_img/view_editor_objects.js',
204 'js/wiki_img/view_editor_motifs.js',
205 'js/wiki/view_editor_source.js',
206 'js/wiki/view_history.js',
207 'js/wiki/view_column_diff.js',
209 'output_filename': 'compressed/detail_img_scripts.js',
212 'source_filenames': (
213 'js/catalogue/catalogue.js',
215 'email_mangler/email_mangler.js',
217 'output_filename': 'compressed/catalogue_scripts.js',
220 'source_filenames': (
221 'js/book_text/jquery.eventdelegation.js',
222 'js/book_text/jquery.scrollto.js',
223 'js/book_text/jquery.highlightfade.js',
224 'js/book_text/book.js',
226 'output_filename': 'compressed/book.js',
229 'source_filenames': (
230 'contextmenu/jquery.ui.position.js',
231 'contextmenu/jquery.contextMenu.js',
232 'js/catalogue/book_list.js',
234 'output_filename': 'compressed/book_list.js',
247 integrations=[DjangoIntegration()]