How gothinkster/django-realworld-example-app works
Conduit is a Django REST API example implementing RealWorld-style accounts, profiles, and social article features. A client calls API views, which validate or query domain models, serialize results, and return JSON; the main content workflow includes article browsing and author/tag/favorite filters, comments, and a followed-author feed. Registration and login, profile follow/unfollow, and article favorites are distinct capabilities. The graph follows documented behavior and indexed references; unsampled URL wiring and runtime details are omitted where evidence is insufficient.
Main entry points: articles/models.py Articles, comments, tags · profiles/models.py Profiles and follows · articles/views.py Article endpoints · authentication/views.py Account endpoints
Components 15
Identity and profiles
- Account endpoints
conduit/apps/authentication/views.py - Account serializers
conduit/apps/authentication/serializers.py - Users and JWT
conduit/apps/authentication/models.py - Profiles and follows
conduit/apps/profiles/models.py - Profile endpoints
conduit/apps/profiles/views.py - Profile serializer
conduit/apps/profiles/serializers.py
Articles and discussion
- Article endpoints
conduit/apps/articles/views.py - Article serializers
conduit/apps/articles/serializers.py - Articles, comments, tags
conduit/apps/articles/models.py - Tag relations
conduit/apps/articles/relations.py - Article slug signal
conduit/apps/articles/signals.py
Shared API layer
- JSON rendering
conduit/apps/core/renderers.py - Timestamp base model
conduit/apps/core/models.py
Other components
- API client
- Relational database
Connections 24
- API client → Account endpoints: sends requests
README.md - API client → Profile endpoints: sends requests
README.md - API client → Article endpoints: sends requests
README.md - Account endpoints → Account serializers: validates and saves
conduit/apps/authentication/views.py - Account serializers → Users and JWT: creates and authenticates
conduit/apps/authentication/serializers.py - Account serializers → Profile serializer: embeds profile
conduit/apps/authentication/serializers.py - Profile endpoints → Profiles and follows: reads and follows
conduit/apps/profiles/views.py - Profile endpoints → Profile serializer: serializes profiles
conduit/apps/profiles/views.py - Profile serializer → Profiles and follows: serializes
conduit/apps/profiles/serializers.py - Article endpoints → Articles, comments, tags: queries and mutates
conduit/apps/articles/views.py - Article endpoints → Article serializers: validates and serializes
conduit/apps/articles/views.py - Article serializers → Articles, comments, tags: creates and serializes
conduit/apps/articles/serializers.py - Article serializers → Tag relations: uses tag field
conduit/apps/articles/serializers.py - Article endpoints → JSON rendering: configures rendering
- Account endpoints → JSON rendering: configures rendering
- Profiles and follows → Articles, comments, tags: favorites relation
conduit/apps/profiles/models.py - Articles, comments, tags → Profiles and follows: author relation
conduit/apps/articles/models.py - Articles, comments, tags → Timestamp base model: inherits timestamps
conduit/apps/articles/models.py - Users and JWT → Timestamp base model: inherits timestamps
conduit/apps/authentication/models.py - Profiles and follows → Timestamp base model: inherits timestamps
conduit/apps/profiles/models.py - Article slug signal → Articles, comments, tags: sets article slug
conduit/apps/articles/signals.py - Users and JWT → Relational database: persists records
- Profiles and follows → Relational database: persists records
- Articles, comments, tags → Relational database: persists records