config
This commit is contained in:
parent
26134af736
commit
5b40d06bf4
@ -1,9 +1,13 @@
|
||||
from flask import Flask
|
||||
|
||||
from .config import Config
|
||||
from .ext import db
|
||||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(Config())
|
||||
|
||||
db.init_app(app)
|
||||
|
||||
return app
|
||||
|
Loading…
x
Reference in New Issue
Block a user