Update allowed hosts and formatting

This commit is contained in:
George Lacey 2021-06-03 09:51:54 +01:00
parent dd0e981543
commit f95b7b1c41

View File

@ -11,7 +11,7 @@ DEBUG = False
AXES_LOCKOUT_CALLABLE = "borg.views.axes"
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'george.ooo', 'www.george.ooo', 'borg.george.ooo']
ALLOWED_HOSTS = ['127.0.0.1', 'borg.george.ooo']
AUTHENTICATION_BACKENDS = [
'axes.backends.AxesBackend',
@ -70,7 +70,6 @@ DATABASES = {
}
}
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
@ -96,17 +95,16 @@ USE_L10N = True
USE_TZ = False
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder'
]
COMPRESS_PRECOMPILERS = (('text/x-scss', 'django_libsass.SassCompiler'),)
]
COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
LIBSASS_OUTPUT_STYLE = 'compressed'
COMPRESS_PRECOMPILERS = (('text/x-scss', 'django_libsass.SassCompiler'),)
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
@ -130,9 +128,7 @@ CACHES = {
}
}
# security
SESSION_COOKIE_SECURE = True
SECURE_SSL_REDIRECT = True
CSRF_COOKIE_SECURE = True