This commit is contained in:
pika 2025-04-03 13:51:52 +02:00
parent 78ce15e82d
commit 0a31714a93
10 changed files with 159 additions and 149 deletions

4
run.py
View file

@ -10,6 +10,7 @@ from datetime import datetime
import random
import string
import json
from flask_wtf.csrf import CSRFProtect
# Add the current directory to Python path
current_dir = os.path.abspath(os.path.dirname(__file__))
@ -79,6 +80,9 @@ def register_routes(app):
print("Starting Flask app with SQLite database...")
app = create_app("development")
# Set up CSRF protection
csrf = CSRFProtect(app)
@app.shell_context_processor
def make_shell_context():