From 62176781c8c7a1c54b4042e07d9629d2927dc464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=94=E5=90=AC=E9=A3=8E=E5=90=9F?= Date: Wed, 23 Mar 2022 14:40:10 +0800 Subject: [PATCH] Update config.md --- docs/config.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/config.md b/docs/config.md index 73555dc..c095bca 100644 --- a/docs/config.md +++ b/docs/config.md @@ -62,3 +62,8 @@ SERVER_EMAIL = os.environ.get('DJANGO_EMAIL_USER') 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")) ``` 可能是因为你的mysql版本低于5.6,需要升级mysql版本>=5.6即可。 + +django 4.0登录可能会报错CSRF,需要配置下`settings.py`中的`CSRF_TRUSTED_ORIGINS` + +https://github.com/liangliangyy/DjangoBlog/blob/master/djangoblog/settings.py#L39 +