Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
vest
Commits
1f4b8d55
Commit
1f4b8d55
authored
Dec 25, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kafka
parent
7cb58edd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
consum.cpython-36.pyc
moment/views/__pycache__/consum.cpython-36.pyc
+0
-0
irrigation.cpython-36.pyc
moment/views/__pycache__/irrigation.cpython-36.pyc
+0
-0
irrigation.py
moment/views/irrigation.py
+2
-0
settings.py
vest/settings.py
+10
-2
No files found.
moment/views/__pycache__/consum.cpython-36.pyc
View file @
1f4b8d55
No preview for this file type
moment/views/__pycache__/irrigation.cpython-36.pyc
View file @
1f4b8d55
No preview for this file type
moment/views/irrigation.py
View file @
1f4b8d55
...
...
@@ -9,6 +9,7 @@ from django.conf import settings
import
datetime
import
time
import
logging
from
libs.error
import
logging_exception
@bind
(
'vest/moment/vest_irrigation'
)
...
...
@@ -75,4 +76,5 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
logging
.
info
(
"------------------------"
)
except
:
logging_exception
()
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
vest/settings.py
View file @
1f4b8d55
...
...
@@ -79,8 +79,16 @@ WSGI_APPLICATION = 'vest.wsgi.application'
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
os
.
path
.
join
(
BASE_DIR
,
'db.sqlite3'
),
'ENGINE'
:
'django.db.backends.mysql'
,
# 设置为mysql数据库
'NAME'
:
'mimas_test'
,
'USER'
:
'work'
,
'PASSWORD'
:
'Gengmei1'
,
'HOST'
:
'mysql-service'
,
'PORT'
:
'3306'
,
'OPTIONS'
:
{
"init_command"
:
"SET foreign_key_checks = 0;"
,
"charset"
:
"utf8mb4"
,
# 为了支持emoji表情
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment