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
b0da22c2
Commit
b0da22c2
authored
Dec 14, 2021
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1bf61383
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
config.py
+3
-2
manager.py
+2
-2
No files found.
config.py
View file @
b0da22c2
...
@@ -64,6 +64,6 @@ class ProductionConfig(Config):
...
@@ -64,6 +64,6 @@ class ProductionConfig(Config):
config_map
=
{
config_map
=
{
'develop'
:
DevelopmentConfig
,
#
'develop': DevelopmentConfig,
#
'product': ProductionConfig,
'product'
:
ProductionConfig
,
}
}
\ No newline at end of file
manager.py
View file @
b0da22c2
...
@@ -5,8 +5,8 @@ from flask_migrate import Migrate, MigrateCommand
...
@@ -5,8 +5,8 @@ from flask_migrate import Migrate, MigrateCommand
from
apps.models
import
*
from
apps.models
import
*
app
=
creat_app
(
'develop'
)
#
app = creat_app('develop')
#
app = creat_app('product')
app
=
creat_app
(
'product'
)
manager
=
Manager
(
app
)
manager
=
Manager
(
app
)
Migrate
(
app
,
db
)
Migrate
(
app
,
db
)
manager
.
add_command
(
'db'
,
MigrateCommand
)
manager
.
add_command
(
'db'
,
MigrateCommand
)
...
...
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