#django
Study materials by tag "django" from expert practitioners. Current articles and useful tips for development.
Articles with tag "#django"
All materials on the topic django
related_name in Django
relatedname is the name used for reverse access from a related model back to its parent.
User Profile Page
Охватываемые темы: Simple Profile (User Data Only), Extending with a Profile Model, Auto-creating a Profile via Signals, Profile Template.
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.
Django REST Framework: Introduction
DRF is the most popular package for building REST APIs in Django.
Template Loading in Django
Recommended: use tasks/templates/tasks/ to avoid name conflicts between applications.
Password Change in Django
Охватываемые темы: Built-in Views, Password Change Template, Email for Password Reset, Password Change in Code.
HttpRequest and HttpResponse in Django
Охватываемые темы: HttpRequest — the request object, HttpResponse — the response object, Redirect, render() — a convenient shortcut.
Django: Production Checklist
Use PostgreSQL, not SQLite.
Similar tags
Study related topics
Looking for more on the topic?
Study all our materials or subscribe to updates