X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/d64f05ea901ccb7e61eacd9a5579bb81138b193d..c1fb106dd58d06968cb2932dab47f67d96163aa1:/audiobooks/settings.py?ds=sidebyside diff --git a/audiobooks/settings.py b/audiobooks/settings.py index dc55333..9289581 100644 --- a/audiobooks/settings.py +++ b/audiobooks/settings.py @@ -105,9 +105,15 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django_cas.middleware.CASMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) +AUTHENTICATION_BACKENDS = ( + 'django.contrib.auth.backends.ModelBackend', + 'django_cas.backends.CASBackend', +) + ROOT_URLCONF = 'audiobooks.urls' TEMPLATE_DIRS = ( @@ -158,12 +164,20 @@ LOGGING = { } } +#http://logowanie.nowoczesnapolska.org.pl/cas/' +CAS_SERVER_URL = "http://logowanie.nowoczesnapolska.org.pl/cas/" +CAS_VERSION = "1" +EMAIL_SUBJECT_PREFIX = '[Audio] ' +SERVER_EMAIL = 'no-reply@audio.wolnelektury.pl' +EMAIL_HOST = 'localhost' +EMAIL_PORT = 25 import djcelery djcelery.setup_loader() +CELERY_SEND_TASK_ERROR_EMAILS = True BROKER_BACKEND = "djkombu.transport.DatabaseTransport" BROKER_HOST = "localhost" BROKER_PORT = 5672