Closed stuar7 closed 4 months ago
This commit adds an admin user.
The user can be added via flask add-admin.
flask add-admin
Test data is now added via flask add-test.
flask add-test
To refresh the database, the series of commands is now
flask db upgrade flask db add-all add-all will execute both add-admin and add-test
flask db upgrade
flask db add-all
You can look inside commands.py to see how test data / admin is loaded.
commands.py
There is also a page /manage that only the admin can access that allows you to delete games or users.
/manage
This commit adds an admin user.
The user can be added via
flask add-admin
.Test data is now added via
flask add-test
.To refresh the database, the series of commands is now
flask db upgrade
flask db add-all
add-all will execute both add-admin and add-testYou can look inside
commands.py
to see how test data / admin is loaded.There is also a page
/manage
that only the admin can access that allows you to delete games or users.