'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django_cas_ng.middleware.CASMiddleware',
+ ]
+if CAS_SERVER_URL:
+ MIDDLEWARE.append(
+ 'django_cas_ng.middleware.CASMiddleware',
+ )
+
+MIDDLEWARE += [
'django.contrib.admindocs.middleware.XViewMiddleware',
'fnp_django_pagination.middleware.PaginationMiddleware',
'maintenancemode.middleware.MaintenanceModeMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
] + MIDDLEWARE
-AUTHENTICATION_BACKENDS = (
- 'django.contrib.auth.backends.ModelBackend',
- 'django_cas_ng.backends.CASBackend',
-)
+if CAS_SERVER_URL:
+ AUTHENTICATION_BACKENDS = (
+ 'django.contrib.auth.backends.ModelBackend',
+ 'django_cas_ng.backends.CASBackend',
+ )
ROOT_URLCONF = 'redakcja.urls'
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
+ 'admin_numeric_filter',
'django.contrib.admin',
'django.contrib.admindocs',
'bootstrap4',
'catalogue',
+ 'documents',
'cover',
'dvcs',
'wiki',
if DEBUG:
INSTALLED_APPS += ('debug_toolbar',)
+LOCALE_PATHS = [
+ PROJECT_ROOT + "/locale-contrib",
+]
+
LOGIN_REDIRECT_URL = '/documents/user'
MIN_COVER_SIZE = (915, 1270)
),
'output_filename': 'compressed/detail_styles.css',
},
- 'catalogue': {
+ 'documents': {
'source_filenames': (
'css/filelist.css',
),
- 'output_filename': 'compressed/catalogue_styles.css',
+ 'output_filename': 'compressed/documents_styles.css',
},
'book': {
'source_filenames': (
),
'output_filename': 'compressed/detail_img_scripts.js',
},
- 'catalogue': {
+ 'documents': {
'source_filenames': (
- 'js/catalogue/catalogue.js',
+ 'js/documents/documents.js',
'js/slugify.js',
'email_mangler/email_mangler.js',
),
- 'output_filename': 'compressed/catalogue_scripts.js',
+ 'output_filename': 'compressed/documents_scripts.js',
},
'book': {
'source_filenames': (
+ 'js/lib/jquery/jquery.cycle2.min.js',
'js/book_text/jquery.eventdelegation.js',
'js/book_text/jquery.scrollto.js',
'js/book_text/jquery.highlightfade.js',
},
'book_list': {
'source_filenames': (
- 'js/catalogue/book_list.js',
+ 'js/documents/book_list.js',
),
'output_filename': 'compressed/book_list.js',
}