wip
This commit is contained in:
parent
78ce15e82d
commit
0a31714a93
10 changed files with 159 additions and 149 deletions
4
run.py
4
run.py
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue