mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-29 10:50:00 +00:00
Add base Flask application with user authentication, SQLAlchemy models for users, units, and food items, admin blueprint, and basic templates. Includes database migration setup, login form, and seed script for initial user creation.
8 lines
172 B
Python
8 lines
172 B
Python
from application import db, app
|
|
from models import User
|
|
|
|
with app.app_context():
|
|
User.query.delete()
|
|
db.session.add(User("admin", "admin"))
|
|
db.session.commit()
|