Tweaked some settings

This commit is contained in:
Sebastian 2017-05-19 18:25:23 +02:00
parent 91e213f018
commit 349b3a0d89
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
__pycache__
virtenv
/media
/static_root

View File

@ -130,6 +130,9 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
STATIC_ROOT = os.path.join(BASE_DIR, 'static_root')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
@ -140,3 +143,11 @@ AUTH_USER_MODEL = 'users.User'
LOGIN_REDIRECT_URL = '/'
TAGGIT_CASE_INSENSITIVE = True
# Some security settings
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
X_FRAME_OPTIONS = 'DENY'
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True