Commit fcd2bc79 authored by 王英豪's avatar 王英豪

数据库

parent 6b939f09
...@@ -51,12 +51,18 @@ if ENV_PROFILE == "SERVER": ...@@ -51,12 +51,18 @@ if ENV_PROFILE == "SERVER":
# mysql # mysql
DATABASES = { DATABASES = {
'default': { 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'OPTIONS': {
# 'read_default_file': BASE_DIR + '/release.cnf',
# 'init_command': 'SET foreign_key_checks = 0;',
# 'charset': 'utf8mb4',
# },
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'OPTIONS': { 'NAME': 'test_qa',
'read_default_file': BASE_DIR + '/release.cnf', 'USER': 'qa',
'init_command': 'SET foreign_key_checks = 0;', 'PASSWORD': 'qatest',
'charset': 'utf8mb4', 'HOST': '172.16.92.55',
}, 'PORT': '31257'
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment