python学习

This commit is contained in:
2019-08-13 11:37:28 +08:00
parent 72fbe50be4
commit 65188f148d
2 changed files with 30 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
DEBUG = True
SQLALCHEMY_ECHO = True
SQLALCHEMY_DATABASE_URI = 'mysql://username:password@127.0.0.1/food_db?charset=utf8mb4'
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/food_db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENCODING = "utf8mb4"