config
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user