Got the app to auto-reload when running in development
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
from flask import Flask
|
||||
from .controllers.top import top_bp
|
||||
import os
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app = Flask(
|
||||
'Muspah',
|
||||
template_folder=os.path.join(os.path.dirname(__file__), 'templates'),
|
||||
static_folder=os.path.join(os.path.dirname(__file__), 'static'),
|
||||
instance_relative_config=True
|
||||
)
|
||||
|
||||
app.register_blueprint(top_bp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user