Category articles "Django"
Study all materials on this topic
login_required: protecting views
Django can restrict a view to authenticated users with a decorator for function-based views or a mixin for class-based views.
Django ORM: Cheatsheet
ORM (Object-Relational Mapping) lets you work with the database through Python objects without writing SQL.
Django: Next Steps
You've mastered the Django fundamentals. Where to go from here?
Django Templates: Introduction
Django Template Language (DTL) is a simple templating language for generating HTML.
Project vs Application in Django
A Django project contains the site's shared configuration, while applications split its functionality into focused, reusable components.
Views in Django: Handling Requests
A view is a function or class that receives an HTTP request and returns an HTTP response.
Environment Variables in Django
Covered topics: Why use environment variables, python-dotenv, django-environ (alternative), .gitignore.
SuccessMessageMixin in Django
SuccessMessageMixin is a mixin for displaying a flash message after a form is successfully submitted in a class-based view.
Timezones in Django
Reliable timezone handling requires aware datetime values, UTC storage, and conversion to local time at the display boundary.
Django Versions: What's New
Covered topics: the current LTS, Django 5.x, Django 6.0, and version selection.
URL Routing in Django
Django maps URLs to views via urlpatterns.
Authentication in Django
Django includes a complete authentication system: the User model, login/logout, and permissions.
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!