'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'
},
'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',