How thehotice/pwa_project works
This Django REST backend provides account and social-network APIs: users authenticate, manage profiles and invitations, find or connect with other users, and create and interact with posts. The primary request path enters through the project URL configuration, dispatches to account or post views, and uses serializers for validation and models for persisted state. Password reset and email are additional capabilities. The README gives no feature detail, and the sampled views are incomplete, so the graph omits uncertain route-level and cross-feature wiring.
Main entry points: urls.py API routing · accounts/views.py Account endpoints · posts/views.py Post endpoints · models.py Users and connections
Components 19
API entry and auth
- API routing
pwa/urls.py - JWT login
pwa/urls.py - Email or username auth
accounts/modelbackend.py - Password reset
django_rest_passwordreset/views.py - Reset routes
django_rest_passwordreset/urls.py
Accounts and connections
- Account endpoints
accounts/views.py - Account validation
accounts/serializers.py - Users and connections
accounts/models.py - Connection helpers
accounts/utils.py - Account routes
accounts/urls.py
Posts and interactions
- Post endpoints
posts/views.py - Post validation
posts/serializers.py - Posts and activity
posts/models.py - Post helpers
posts/utils.py - Post routes
posts/urls.py
Persistence and messaging
- Reset tokens
django_rest_passwordreset/models.py - SQLite database
pwa/settings.py - SMTP email
Other components
- API client
Connections 23
- API client → API routing: sends requests
- API routing → JWT login: dispatches login
- API routing → Account routes: dispatches accounts
- API routing → Post routes: dispatches posts
- API routing → Reset routes: dispatches reset
- Account routes → Account endpoints: dispatches
- Post routes → Post endpoints: dispatches
- Reset routes → Password reset: dispatches
- Account endpoints → Account validation: validates with
- Account endpoints → Users and connections: reads and writes
- Account endpoints → Connection helpers: uses helpers
- Account validation → Users and connections: checks records
- Post endpoints → Post validation: validates with
- Post endpoints → Posts and activity: reads and writes
- Post endpoints → Post helpers: uses helpers
- Post validation → Posts and activity: checks records
- Post validation → Users and connections: reads visibility settings
- Users and connections → SQLite database: persists
- Posts and activity → SQLite database: persists
- JWT login → Email or username auth: authenticates with
- Password reset → Reset tokens: manages tokens
- Password reset → SMTP email: sends reset mail
- Account endpoints → SMTP email: sends invitations