#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
pytest-django: Testing Django
Охватываемые темы: Installation, @pytest.mark.djangodb, Fixtures, Testing views.
Django: Template Tags
Template tags are logic inside HTML. Unlike {{ variable }} which only outputs a value, {% %} tags control flow:...
Django: Static Files
Static files are CSS, JavaScript, images, and fonts. Django handles them in a specific way: it serves them itself during...
Django: Template Inheritance
Without inheritance, every HTML template would contain duplicated code: navigation, CSS/JS links, footer. Inheritance lets you write a page skeleton...
Django: Forms in Templates
A Django form is a Python class. In a template it becomes HTML. Let's look at the rendering approaches: from...
Search in Django
Requires PostgreSQL and django.contrib.postgres in INSTALLEDAPPS.
Swagger Documentation with drf-spectacular
drf-spectacular generates an OpenAPI 3.0 schema and Swagger UI for DRF.
settings.py: Django Configuration
settings.py is the central configuration file for a Django project.
DRF Serializers
A serializer converts model objects to and from a Python dict and JSON.
Django Project Structure
After running django-admin startproject mysite, the following standard structure is created:
CSRF Protection in Django
CSRF (Cross-Site Request Forgery) is an attack in which an adversary tricks the user's browser into sending a request on...
Django Model Fields
A model is a Python class that describes a database table. Each field represents a column.
Similar tags
Study related topics
Looking for more on the topic?
Study all our materials or subscribe to updates