accept public domain on Flickr
[redakcja.git] / redakcja / settings / common.py
index 735743d..6c53d44 100644 (file)
@@ -79,14 +79,14 @@ MIDDLEWARE_CLASSES = (
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django_cas.middleware.CASMiddleware',
 
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django_cas.middleware.CASMiddleware',
 
-    'django.middleware.doc.XViewMiddleware',
+    'django.contrib.admindocs.middleware.XViewMiddleware',
     'pagination.middleware.PaginationMiddleware',
     'maintenancemode.middleware.MaintenanceModeMiddleware',
 )
 
 AUTHENTICATION_BACKENDS = (
     'django.contrib.auth.backends.ModelBackend',
     'pagination.middleware.PaginationMiddleware',
     'maintenancemode.middleware.MaintenanceModeMiddleware',
 )
 
 AUTHENTICATION_BACKENDS = (
     'django.contrib.auth.backends.ModelBackend',
-    'django_cas.backends.CASBackend',
+    'fnpdjango.auth_backends.AttrCASBackend',
 )
 
 ROOT_URLCONF = 'redakcja.urls'
 )
 
 ROOT_URLCONF = 'redakcja.urls'
@@ -107,15 +107,16 @@ INSTALLED_APPS = (
     'django.contrib.admin',
     'django.contrib.admindocs',
     'django.contrib.comments',
     'django.contrib.admin',
     'django.contrib.admindocs',
     'django.contrib.comments',
+    'raven.contrib.django.raven_compat',
 
     'south',
     'sorl.thumbnail',
     'pagination',
 
     'south',
     'sorl.thumbnail',
     'pagination',
-    'gravatar',
-    'djcelery',
-    'djkombu',
+    'django_gravatar',
     'fileupload',
     'fileupload',
+    'kombu.transport.django',
     'pipeline',
     'pipeline',
+    'fnpdjango',
 
     'catalogue',
     'cover',
 
     'catalogue',
     'cover',
@@ -137,18 +138,15 @@ CAS_USER_ATTRS_MAP = {
 IMAGE_DIR = 'images/'
 
 
 IMAGE_DIR = 'images/'
 
 
-import djcelery
-djcelery.setup_loader()
-
-BROKER_BACKEND = "djkombu.transport.DatabaseTransport"
-BROKER_HOST = "localhost"
-BROKER_PORT = 5672
-BROKER_USER = "guest"
-BROKER_PASSWORD = "guest"
-BROKER_VHOST = "/"
+BROKER_URL = 'django://'
+CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
+CELERY_SEND_TASK_ERROR_EMAILS = True
+CELERY_ACCEPT_CONTENT = ['pickle']  # Remove when all tasks jsonable.
 
 SHOW_APP_VERSION = False
 
 
 SHOW_APP_VERSION = False
 
+MIN_COVER_SIZE = (915, 1270)
+
 try:
     from redakcja.settings.compress import *
 except ImportError:
 try:
     from redakcja.settings.compress import *
 except ImportError: