Skip to content

Commit 6217678

Browse files
authored
Update config.md
1 parent d23130a commit 6217678

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/config.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ SERVER_EMAIL = os.environ.get('DJANGO_EMAIL_USER')
6262
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL)' at line 1"))
6363
```
6464
可能是因为你的mysql版本低于5.6,需要升级mysql版本>=5.6即可。
65+
66+
django 4.0登录可能会报错CSRF,需要配置下`settings.py`中的`CSRF_TRUSTED_ORIGINS`
67+
68+
https://github.com/liangliangyy/DjangoBlog/blob/master/djangoblog/settings.py#L39
69+

0 commit comments

Comments
 (0)