How payal0908/socialnet works
SocialNet is a Django social network for profiles, friend requests, and status posts, with a separate WebSocket chat feature and REST API. The main user workflow is browsing the network, sending or responding to friend requests, and viewing or creating posts; accepting a request updates friend membership through model signals. The graph includes the documented profile and network capabilities plus chat and API layers. Some URL wiring is supported only by the source index, so unsampled details are omitted rather than inferred.
Main entry points: models.py Profiles, posts, relationships · social/views.py Social views · api.py API endpoints · chat/views.py Chat pages
Components 16
Web experience
- Landing page
socialnet/base/views.py - Social views
socialnet/social/views.py - Chat pages
socialnet/chat/views.py - Base routes
socialnet/base/urls.py - Social routes
socialnet/social/urls.py
Social domain
- Profiles, posts, relationships
socialnet/social/models.py - Post forms
socialnet/social/forms.py - Friend signals
socialnet/social/signals.py - Signal registration
socialnet/social/apps.py
REST API
- API endpoints
socialnet/social/api.py - API serializers
socialnet/social/serializers.py
Chat
- Chat routes
socialnet/chat/urls.py - WebSocket routes
socialnet/chat/routing.py - Chat consumer
socialnet/chat/consumers.py - ASGI routing
socialnet/socialnet/routing.py
Other components
- User
Connections 15
- User → Base routes: opens app
- Base routes → Landing page: routes to
socialnet/base/urls.py - Social routes → Social views: routes to
socialnet/social/urls.py - Chat routes → Chat pages: routes to
socialnet/chat/urls.py - Social views → Profiles, posts, relationships: reads and writes
socialnet/social/views.py - Social views → Post forms: uses forms
socialnet/social/views.py - Signal registration → Friend signals: registers
socialnet/social/apps.py - Friend signals → Profiles, posts, relationships: updates relationships
socialnet/social/signals.py - API endpoints → Profiles, posts, relationships: queries
socialnet/social/api.py - API endpoints → API serializers: serializes with
socialnet/social/api.py - API serializers → Profiles, posts, relationships: serializes
socialnet/social/serializers.py - ASGI routing → WebSocket routes: dispatches to
socialnet/socialnet/routing.py - WebSocket routes → Chat consumer: routes to
socialnet/chat/routing.py - User → Chat consumer: exchanges messages
socialnet/chat/consumers.py - Chat pages → Profiles, posts, relationships: loads profile
socialnet/chat/views.py