Learn programming with our articles
Practical tutorials, in-depth technology reviews and current trends in the development world from industry experts.
Choose a direction
Each category contains carefully selected materials from experts
Fresh content
The most relevant materials from our experts
get_context_data in Django CBVs
getcontextdata() is a CBV method for passing additional data to a template.
select_related and prefetch_related
Query optimization when working with related objects.
Nested Serializers in DRF
Охватываемые темы: Reading Nested Objects, Write by ID, Read as Object, Nested List (Reverse Relation),...
Django CreateView
CreateView is a CBV for creating an object through a form.
Django Template Filters
Filters are applied to template variables using the | pipe character.
related_name in Django
relatedname is the name used for reverse access from a related model back to its...
User Profile Page
Охватываемые темы: Simple Profile (User Data Only), Extending with a Profile Model, Auto-creating a Profile...
Django Model Relationships
Охватываемые темы: ForeignKey (One-to-Many), ondelete Options, ManyToManyField (Many-to-Many), OneToOneField (One-to-One).
Filtering in Django REST Framework
Охватываемые темы: Simple Filtering via Query Params, django-filter, Search and Ordering, filtersetfields — Quick Setup.
Choices in Django Models
TextChoices is preferred — it provides autocompletion and avoids magic strings.
Messages Framework in Django
A built-in mechanism for displaying one-time messages to the user.
Squashing Migrations in Django
Squash — compressing multiple migrations into one to simplify the history.
Want to share your knowledge?
Become an author on our blog and help other developers learn new technologies