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