X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/df7591ba8d0b16c2faf45c0064a86a6f31a3733b..bf852b7e6f2828e0ef53440b69247e10b782e8cd:/prawokultury/settings.d/20-basic.py diff --git a/prawokultury/settings.d/20-basic.py b/prawokultury/settings.d/20-basic.py index 0d126cc..0409be1 100644 --- a/prawokultury/settings.d/20-basic.py +++ b/prawokultury/settings.d/20-basic.py @@ -1,5 +1,4 @@ DEBUG = False -TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { @@ -14,20 +13,27 @@ DATABASES = { SITE_ID = 1 -# List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -# 'django.template.loaders.eggs.Loader', -) - ROOT_URLCONF = 'prawokultury.urls' +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + "django.contrib.auth.context_processors.auth", + "django.core.context_processors.debug", + "django.core.context_processors.i18n", + "django.core.context_processors.media", + "django.core.context_processors.static", + "django.core.context_processors.tz", + "django.contrib.messages.context_processors.messages", + 'django.core.context_processors.request', + 'prawokultury.context_processors.registration_url', + ], + }, + }, +] + # Python dotted path to the WSGI application used by Django's runserver. WSGI_APPLICATION = 'prawokultury.wsgi.application' - -TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. -)