How vishwas2628/blog-app works
This Django application serves a public blog and provides authenticated management for posts, categories, and users. Readers browse featured and recent posts, filter by category or search, and comment on posts; visitors can also register and log in. The dashboard manages content and offers an AI-assisted text-correction endpoint. The source excerpts show view-to-model and view-to-render behavior, but not URL configuration or model definitions, so routing details and finer data relationships are omitted.
Main entry points: blog_main/views.py Home and auth · blogs/views.py Browse and comment · dashboard/views.py Dashboard actions · models.py Posts and categories
Components 19
Public blog
- Home and auth
blog_main/views.py - Browse and comment
blogs/views.py - Home page
templates/index.html - Post page
templates/blogs.html - Category page
templates/blog_by_category.html - Search page
templates/search.html - Registration page
templates/register.html - Login page
templates/login.html
Content management
- Dashboard actions
dashboard/views.py - Dashboard UI
templates/dashboard - Management forms
dashboard/forms.py - Text correction
dashboard/gemini_service.py
Shared services
- Posts and categories
blogs/models.py - About and links
assignments/models.py - Shared page context
blogs/context_processors.py - Registration form
blog_main/forms.py
Data and integrations
- SQLite database
blog_main/settings.py - Google Gemini
Other components
- Visitor
Connections 22
- Visitor → Home and auth: requests pages
- Home and auth → Posts and categories: reads posts
- Home and auth → About and links: reads about
- Home and auth → Home page: renders
- Home and auth → Registration form: validates registration
- Home and auth → Registration page: renders
- Home and auth → Login page: renders
- Visitor → Browse and comment: browses and comments
- Browse and comment → Posts and categories: queries and saves
- Browse and comment → Post page: renders
- Browse and comment → Category page: renders
- Browse and comment → Search page: renders
- Visitor → Dashboard actions: manages content
- Dashboard actions → Posts and categories: reads and writes
- Dashboard actions → Management forms: validates changes
- Dashboard actions → Dashboard UI: renders
- Dashboard actions → Text correction: requests correction
- Text correction → Google Gemini: sends text
- Shared page context → Posts and categories: reads categories
- Shared page context → About and links: reads social links
- Posts and categories → SQLite database: reads and writes
- About and links → SQLite database: reads and writes