How tologon7/internet-blog works
This repository implements a Django REST API for a blog with user accounts. Users register or log in, receive JWTs, then use authenticated endpoints to manage posts, comments, and collections; account endpoints also support profile and password changes and OTP-based recovery. Blog responses are shaped by serializers, with category filtering, pagination, and localized dates. The excerpts and source index support the main app-to-view and view-to-domain relationships; some routing and external-service details are not fully shown, so uncertain links are omitted or marked dashed.
Main entry points: blog/views.py Blog handlers · authentication/views.py Account handlers · serializers.py Blog serializers · models.py Posts and collections
Components 17
API Routing
- Account routes
authentication/urls.py - Blog routes
blog/urls.py
Accounts
- Account handlers
authentication/views.py - Account serializers
authentication/serializers.py - Users and OTP
authentication/models.py - Ownership checks
authentication/permissions.py
Blog Features
- Blog handlers
blog/views.py - Blog serializers
blog/serializers.py - Posts and collections
blog/models.py - Post filtering
blog/filters.py - Pagination
blog/pagination.py - Date formatting
blog/datetime.py
Runtime Configuration
- Django settings
config/settings.py
Other components
- API client
- Configured database
- SMTP email
- Cloudinary storage
Connections 18
- API client → Account routes: calls
- API client → Blog routes: calls
- Account routes → Account handlers: routes to
authentication/urls.py - Blog routes → Blog handlers: routes to
blog/urls.py - Account handlers → Account serializers: validates with
authentication/views.py - Account handlers → Users and OTP: reads and writes
authentication/views.py - Account serializers → Users and OTP: serializes
authentication/serializers.py - Account handlers → SMTP email: sends email
authentication/views.py - Blog handlers → Posts and collections: queries
blog/views.py - Blog handlers → Blog serializers: serializes with
blog/views.py - Blog handlers → Post filtering: filters with
blog/views.py - Blog handlers → Pagination: paginates with
blog/views.py - Blog handlers → Ownership checks: checks ownership
blog/views.py - Blog serializers → Posts and collections: serializes
blog/serializers.py - Blog serializers → Date formatting: formats dates
blog/serializers.py - Posts and collections → Users and OTP: references users
blog/models.py - Django settings → Configured database: configures
config/settings.py - Django settings → Cloudinary storage: configures
config/settings.py