from app import app, db, add_sample_data with app.app_context(): db.drop_all() db.create_all() print("Database reset complete.")