Commit 1f4b8d55 authored by lixiaofang's avatar lixiaofang

kafka

parent 7cb58edd
...@@ -9,6 +9,7 @@ from django.conf import settings ...@@ -9,6 +9,7 @@ from django.conf import settings
import datetime import datetime
import time import time
import logging import logging
from libs.error import logging_exception
@bind('vest/moment/vest_irrigation') @bind('vest/moment/vest_irrigation')
...@@ -75,4 +76,5 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time="" ...@@ -75,4 +76,5 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
logging.info("------------------------") logging.info("------------------------")
except: except:
logging_exception()
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
...@@ -79,8 +79,16 @@ WSGI_APPLICATION = 'vest.wsgi.application' ...@@ -79,8 +79,16 @@ WSGI_APPLICATION = 'vest.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.mysql', # 设置为mysql数据库
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': 'mimas_test',
'USER': 'work',
'PASSWORD': 'Gengmei1',
'HOST': 'mysql-service',
'PORT': '3306',
'OPTIONS': {
"init_command": "SET foreign_key_checks = 0;",
"charset": "utf8mb4", # 为了支持emoji表情
}
} }
} }
......
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