How faozziyyah/flask-blog-app works
Edublog is a Flask CRUD blog: visitors browse posts, while signed-in users can manage posts and profiles; comments are also supported. The application, ORM models, and route handlers are concentrated in app.py, with Jinja templates providing the page views and a relational database holding records. The README documents broader account and post capabilities, but the supplied app.py excerpts are partial, so unshown route-level connections are omitted. Bootstrap and jQuery are included as browser assets; their use by particular templates is not established by the excerpts.
Main entry points: app.py Flask routes · index.html Post listing · post.html Post detail · add_post.html Post editor
Components 16
Web application
- Flask routes
app.py - Login system
app.py
Blog domain
- Post records
app.py - Comment records
app.py - User profiles
app.py
Page views
- Post listing
templates/index.html - Post detail
templates/post.html - Post editor
templates/add_post.html - Comment form
templates/comment.html - Profile page
templates/user.html
Browser assets
- Bootstrap bundle
static/js/bootstrap.bundle.js - Bootstrap ES module
static/js/bootstrap.esm.js - Bootstrap script
static/js/bootstrap.js - jQuery
static/js/jquery.js
Other components
- Visitor
- Relational database
Connections 10
- Visitor → Flask routes: requests pages
readme.md - Flask routes → Post records: queries and saves
app.py - Flask routes → Comment records: creates comments
app.py - Flask routes → User profiles: loads profiles
app.py - Flask routes → Relational database: persists records
app.py - Flask routes → Post listing: renders listing
app.py - Flask routes → Post detail: renders detail
app.py - Flask routes → Post editor: renders editor
app.py - Flask routes → Comment form: renders form
app.py - Login system → User profiles: authenticates users
app.py