Got the app to auto-reload when running in development

This commit is contained in:
Gregory Ballantine
2025-11-18 15:54:21 -05:00
parent 5db50bc271
commit 5a3eb16a7f
2 changed files with 12 additions and 3 deletions

View File

@@ -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)