How mazenkhaled74/personal_blog works
This repository implements a Django REST API for user accounts and a social blogging service. The main workflow is account registration or login, followed by authenticated post creation and retrieval, with separate endpoints for editing, likes, comments, profiles, and search. Views coordinate serializers and ORM models; the models define users and blog content. The supplied excerpts show app-level routes and view behavior, but not project URL inclusion or database configuration, so those links are omitted.
Main entry points: auth_manager/views.py Account Views · content/views.py Content Views · content/models.py Content Models · auth_manager/models.py Custom User
Components 9
Accounts
- Account Views
auth_manager/views.py - User Serializer
auth_manager/serializers.py - Custom User
auth_manager/models.py
Blog Content
- Content Views
content/views.py - Content Serializers
content/serializers.py - Content Models
content/models.py
API Handling
- Account Routes
auth_manager/urls.py - Content Routes
content/urls.py
Other components
- API User
Connections 11
- API User → Account Routes: requests account
auth_manager/urls.py - Account Routes → Account Views: dispatches
auth_manager/urls.py - Account Views → User Serializer: validates users
auth_manager/views.py - User Serializer → Custom User: serializes
auth_manager/serializers.py - Account Views → Custom User: authenticates
auth_manager/views.py - API User → Content Routes: requests content
content/urls.py - Content Routes → Content Views: dispatches
content/urls.py - Content Views → Content Serializers: serializes content
content/views.py - Content Views → Content Models: queries and updates
content/views.py - Content Serializers → Content Models: serializes
content/serializers.py - Content Models → Custom User: references user
content/models.py