-
- Downloads
Display book records and implement edit/delete
Other changes: * create_db.py also generates dummy data * Readme updated with installation instructions * Production version added (run_prod.py) * Debug version uses livereload for automatic reload of pages * AddBookForm generalized so that it can also be used for /edit * Fixed relationship between User and Book table * Added is_admin method to check if current user is an admin
Showing
- README.md 29 additions, 1 deletionREADME.md
- bam/forms.py 3 additions, 3 deletionsbam/forms.py
- bam/models.py 5 additions, 3 deletionsbam/models.py
- bam/routes.py 33 additions, 5 deletionsbam/routes.py
- bam/static/hometable.css 35 additions, 0 deletionsbam/static/hometable.css
- bam/templates/books.html 39 additions, 2 deletionsbam/templates/books.html
- bam/templates/edit.html 26 additions, 0 deletionsbam/templates/edit.html
- create_db.py 39 additions, 14 deletionscreate_db.py
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- run.py 10 additions, 1 deletionrun.py
- run_prod.py 4 additions, 0 deletionsrun_prod.py
Loading
Please register or sign in to comment