X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/f2ed1449ece59c6247b8befc9ca6f423f7e4b004..c00e6aa94827f4972dc33fa79a53b5d9a15a726e:/src/audiobooks/settings.py?ds=sidebyside diff --git a/src/audiobooks/settings.py b/src/audiobooks/settings.py index 714fadb..ca3d16e 100644 --- a/src/audiobooks/settings.py +++ b/src/audiobooks/settings.py @@ -1,5 +1,4 @@ # Django settings for audiobooks project. -# -*- coding: utf-8 -*- import os PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) @@ -16,12 +15,8 @@ MANAGERS = ADMINS DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': os.path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'audio', } } @@ -105,18 +100,18 @@ TEMPLATES = [ }, ] -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django_cas.middleware.CASMiddleware', + 'django_cas_ng.middleware.CASMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', - 'django_cas.backends.CASBackend', + 'django_cas_ng.backends.CASBackend', ) ROOT_URLCONF = 'audiobooks.urls' @@ -131,9 +126,12 @@ INSTALLED_APPS = ( 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', + 'bootstrap4', + 'django_cas_ng', 'apiclient', 'archive', + 'youtube', ) # A sample logging configuration. The only tangible logging @@ -166,7 +164,7 @@ LOGGING = { } CAS_SERVER_URL = "https://logowanie.nowoczesnapolska.org.pl/cas/" -CAS_VERSION = "1" +CAS_VERSION = "2" EMAIL_SUBJECT_PREFIX = '[Audio] ' SERVER_EMAIL = 'no-reply@audio.wolnelektury.pl'