+ web_app
This commit is contained in:
13
web_app/__init__.py
Normal file
13
web_app/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask import Flask
|
||||
from web_app.config import Config
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
def create_app(config_class=Config):
|
||||
app.config.from_object(config_class)
|
||||
|
||||
from web_app.main.routes import main
|
||||
|
||||
app.register_blueprint(main)
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user