app module¶
Run the single-page web application with Flask.
-
app.add_entry()[source]¶ View that processes a POST request with new album input.
- Returns
Redirect to index page if successful, else error page
-
app.index()[source]¶ Main view that lists songs in the database.
Creates view into index page that uses data queried from Albums database and inserts it into the app/templates/index.html template.
- Returns
Rendered HTML template for the SPA