Skip to content

Commit 0151ed8

Browse files
committed
chore: add comment with a warning about ALLOWED_HOSTS
1 parent b050bf5 commit 0151ed8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mysite/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@
2121

2222

2323
# Quick-start development settings - unsuitable for production
24-
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
24+
# See https://docs.djangoproject.com/en/stable/howto/deployment/checklist/
2525

2626
# SECURITY WARNING: keep the secret key used in production secret!
2727
SECRET_KEY = os.environ.get('SECRET_KEY', 'changeme')
2828

2929
# SECURITY WARNING: don't run with debug turned on in production!
3030
DEBUG = os.environ.get('DEBUG', 'True') == 'True'
3131

32+
# SECURITY WARNING: provide a list of representing the host/domain names that
33+
# this Django site can serve. This is a security measure to prevent HTTP Host
34+
# header attacks.
35+
# See https://docs.djangoproject.com/en/stable/ref/settings/#allowed-hosts
3236
ALLOWED_HOSTS = ["*"]
3337
CSRF_TRUSTED_ORIGINS=["https://*.aldryn.io"]
3438

0 commit comments

Comments
 (0)