Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
1bf61383
Commit
1bf61383
authored
Dec 14, 2021
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4248840e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
apps/__init__.py
+1
-2
apps/models.py
+2
-1
apps/view_attract/view.py
+0
-0
No files found.
apps/__init__.py
View file @
1bf61383
...
...
@@ -19,7 +19,7 @@ redis_store = None # 创建变量避免导入错误,在函数中进行初始
# 配置日志信息
# 创建日志记录器,指明日志保存的路径、每个日志文件的最大大小、保存的日志文件个数上限
file_log_handler
=
RotatingFileHandler
(
"logs/log"
,
maxBytes
=
1024
*
1024
*
100
,
backupCount
=
10
)
file_log_handler
=
RotatingFileHandler
(
"logs/log
s
"
,
maxBytes
=
1024
*
1024
*
100
,
backupCount
=
10
)
stream_log_handler
=
logging
.
StreamHandler
()
# 创建日志记录的格式 日志等级 输入日志信息的文件名 行数 日志信息
formatter
=
logging
.
Formatter
(
'
%(levelname)
s
%(filename)
s:
%(lineno)
d
%(message)
s'
)
...
...
@@ -48,7 +48,6 @@ def after_request(resp):
# 'Content-Type,Authorization,X-Requested-With,token,application/octet-stream'
# x-requested-with,content-type
# "Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With"
def
creat_app
(
config_name
):
'''
:param config_name: str 配置模式的名称('develop', 'product')
...
...
apps/models.py
View file @
1bf61383
...
...
@@ -226,7 +226,8 @@ class Video(db.Model):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
,
doc
=
'视频主键id'
,
comment
=
'视频主键id'
)
district
=
db
.
Column
(
db
.
String
(
32
),
nullable
=
False
,
doc
=
'区县名称'
,
comment
=
'区县名称'
)
video_id
=
db
.
Column
(
db
.
String
(
35
),
doc
=
'视频'
,
comment
=
'视频'
)
# video_id = db.Column(db.String(255), doc='视频url', comment='视频url')
video_id1
=
db
.
Column
(
db
.
String
(
255
),
doc
=
'视频链接'
,
comment
=
'视频链接'
)
# 招商驾驶舱-项目数量/金额产业分布图
...
...
apps/view_attract/view.py
View file @
1bf61383
This diff is collapsed.
Click to expand it.
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