Ishi01 / CITS5505Group41Project

CITS5505 Agile Web Develoment Group Project
MIT License
1 stars 0 forks source link

Admin User and Manage Page #29

Closed stuar7 closed 4 months ago

stuar7 commented 4 months ago

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-test

You 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.