mirror of
https://github.com/sunrin-ana/2025-SSF-dotory-manage.git
synced 2026-03-09 18:10:02 +00:00
fix: buy product
This commit is contained in:
parent
20c99c6e1c
commit
b21fc45c7d
11 changed files with 91 additions and 56 deletions
8
app.py
8
app.py
|
|
@ -5,8 +5,8 @@ from db import db
|
|||
from flask_migrate import Migrate
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///dotori.db'
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///dotori.db"
|
||||
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
||||
|
||||
db.init_app(app)
|
||||
migrate = Migrate(app, db)
|
||||
|
|
@ -14,7 +14,7 @@ migrate = Migrate(app, db)
|
|||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
api = Api(app, doc='/docs')
|
||||
api = Api(app, doc="/docs")
|
||||
add_namespaces(api)
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue