Browse Source

Исправить ALLOWED_HOSTS и CSRF_TRUSTED_ORIGINS

Исправил значения по-умолчанию на корректные.
master v1.3
Дмитрий 3 years ago
parent
commit
871cafcaa8
  1. 4
      blog/blog/settings.py

4
blog/blog/settings.py

@ -21,8 +21,8 @@ env = environ.Env(
# set casting, default value
DEBUG=(bool, False),
DEVELOPMENT_MODE=(bool, False),
ALLOWED_HOSTS=(list, "127.0.0.1"),
CSRF_TRUSTED_ORIGINS=(list, "http://127.0.0.1"),
ALLOWED_HOSTS=(list, ["127.0.0.1"]),
CSRF_TRUSTED_ORIGINS=(list, ["http://127.0.0.1"]),
)
# Build paths inside the project like this: BASE_DIR / 'subdir'.

Loading…
Cancel
Save