|
|
@ -1,13 +1,13 @@ |
|
|
|
""" |
|
|
|
Django settings for blog project. |
|
|
|
|
|
|
|
Generated by 'django-admin startproject' using Django 3.0.6. |
|
|
|
Generated by 'django-admin startproject' using Django 3.1.2. |
|
|
|
|
|
|
|
For more information on this file, see |
|
|
|
https://docs.djangoproject.com/en/3.0/topics/settings/ |
|
|
|
https://docs.djangoproject.com/en/3.1/topics/settings/ |
|
|
|
|
|
|
|
For the full list of settings and their values, see |
|
|
|
https://docs.djangoproject.com/en/3.0/ref/settings/ |
|
|
|
https://docs.djangoproject.com/en/3.1/ref/settings/ |
|
|
|
""" |
|
|
|
|
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
|
|
@ -18,7 +18,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR) |
|
|
|
|
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production |
|
|
|
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ |
|
|
|
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ |
|
|
|
|
|
|
|
|
|
|
|
# Application definition |
|
|
@ -48,6 +48,7 @@ INSTALLED_APPS = [ |
|
|
|
'django.contrib.sessions', |
|
|
|
'django.contrib.messages', |
|
|
|
'django.contrib.staticfiles', |
|
|
|
'zapisnik', |
|
|
|
] |
|
|
|
|
|
|
|
MIDDLEWARE = [ |
|
|
@ -86,7 +87,7 @@ WSGI_APPLICATION = 'blog.wsgi.application' |
|
|
|
|
|
|
|
|
|
|
|
# Database |
|
|
|
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases |
|
|
|
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases |
|
|
|
|
|
|
|
DATABASES = { |
|
|
|
'default': { |
|
|
@ -97,30 +98,30 @@ DATABASES = { |
|
|
|
|
|
|
|
|
|
|
|
# Password validation |
|
|
|
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators |
|
|
|
|
|
|
|
AUTH_PASSWORD_VALIDATORS = [ |
|
|
|
{ |
|
|
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', |
|
|
|
}, |
|
|
|
{ |
|
|
|
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', |
|
|
|
}, |
|
|
|
{ |
|
|
|
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', |
|
|
|
}, |
|
|
|
{ |
|
|
|
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', |
|
|
|
}, |
|
|
|
] |
|
|
|
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators |
|
|
|
|
|
|
|
# AUTH_PASSWORD_VALIDATORS = [ |
|
|
|
# { |
|
|
|
# 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', |
|
|
|
# }, |
|
|
|
# { |
|
|
|
# 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', |
|
|
|
# }, |
|
|
|
# { |
|
|
|
# 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', |
|
|
|
# }, |
|
|
|
# { |
|
|
|
# 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', |
|
|
|
# }, |
|
|
|
# ] |
|
|
|
|
|
|
|
|
|
|
|
# Internationalization |
|
|
|
# https://docs.djangoproject.com/en/3.0/topics/i18n/ |
|
|
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/ |
|
|
|
|
|
|
|
LANGUAGE_CODE = 'en-us' |
|
|
|
LANGUAGE_CODE = 'cs' |
|
|
|
|
|
|
|
TIME_ZONE = 'UTC' |
|
|
|
TIME_ZONE = 'Europe/Prague' |
|
|
|
|
|
|
|
USE_I18N = True |
|
|
|
|
|
|
@ -130,7 +131,7 @@ USE_TZ = True |
|
|
|
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images) |
|
|
|
# https://docs.djangoproject.com/en/3.0/howto/static-files/ |
|
|
|
# https://docs.djangoproject.com/en/3.1/howto/static-files/ |
|
|
|
|
|
|
|
STATICFILES_FINDERS = [ |
|
|
|
'django.contrib.staticfiles.finders.FileSystemFinder', |
|
|
@ -143,7 +144,7 @@ STATICFILES_DIRS = [ |
|
|
|
|
|
|
|
# ManifestStaticFilesStorage is recommended in production, to prevent outdated |
|
|
|
# Javascript / CSS assets being served from cache (e.g. after a Wagtail upgrade). |
|
|
|
# See https://docs.djangoproject.com/en/3.0/ref/contrib/staticfiles/#manifeststaticfilesstorage |
|
|
|
# See https://docs.djangoproject.com/en/3.1/ref/contrib/staticfiles/#manifeststaticfilesstorage |
|
|
|
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' |
|
|
|
|
|
|
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static') |
|
|
|