PyLand Team
PyLand Team
Author's articles
All publications PyLand Team
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
Covered topics: Reading Nested Objects, Write by ID, Read as Object, Nested List (Reverse Relation), Writing Nested Objects.
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 parent.
User Profile Page
Covered topics: Simple Profile (User Data Only), Extending with a Profile Model, Auto-creating a Profile via Signals, Profile Template.
Django Model Relationships
Covered topics: ForeignKey (One-to-Many), ondelete Options, ManyToManyField (Many-to-Many), OneToOneField (One-to-One).
Filtering in Django REST Framework
Covered topics: Simple Filtering via Query Params, django-filter, Search and Ordering, filtersetfields β Quick Setup.
Choices in Django Models
Use TextChoices to define a model field's limited set of values in one place for application code, forms, and the...
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.
Statistics by categories
Author's article distribution by topics
Django
63 articles
Python
54 articles
Git ΠΈ GitHub
32 articles
Html Css
23 articles
LLM ΠΈ AI
21 articles