Skip to content

Commit d23130a

Browse files
authored
Update settings.py
1 parent 202baef commit d23130a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

djangoblog/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ def env_to_bool(env, default):
3535

3636
# ALLOWED_HOSTS = []
3737
ALLOWED_HOSTS = ['*', '127.0.0.1', 'example.com']
38-
# Application definition
38+
# django 4.0新增配置
3939
CSRF_TRUSTED_ORIGINS = ['http://example.com']
40+
# Application definition
41+
4042

4143
INSTALLED_APPS = [
4244
# 'django.contrib.admin',

0 commit comments

Comments
 (0)