From ae769f9d1d05b39ecce736deb4448c64984a9483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=94=E5=90=AC=E9=A3=8E=E5=90=9F?= Date: Fri, 22 Feb 2019 21:28:14 +0800 Subject: [PATCH] Update config.md --- bin/config.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/config.md b/bin/config.md index 8a70933..b626333 100644 --- a/bin/config.md +++ b/bin/config.md @@ -53,3 +53,10 @@ SERVER_EMAIL = os.environ.get('DJANGO_EMAIL_USER') 也就是说,需要在代码块开始位置加入这段代码对应的语言。 + +## update +如果你发现执行数据库迁移的时候出现如下报错: +```python +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即可。