📌Articles tagged # django
Handling 404 and Custom Error Pages in Django
This tutorial teaches you how to manage “Page Not Found” errors in Django and improve user experience with custom error pages. You will learn how Django handles 404 errors, how to use Http404 and get_object_or_404, and how to create a personalized 4…
Django Messages Framework
This tutorial introduces Django’s messages framework and shows how to provide user feedback after actions like form submissions, creating, updating, or deleting data. It covers sending different types of messages (success, error, warning, info) from…
Django Template Inheritance and Reusable Layouts
This tutorial explains how to use Django template inheritance to create clean and reusable layouts for your web application. It covers building a base template, defining content blocks, extending templates, and using {% include %} to reuse component…
CRUD Application in Django
This tutorial guides you through building a complete CRUD (Create, Read, Update, Delete) application in Django. It shows how to combine models, ModelForms, views, URLs, and templates to manage data dynamically, allowing users to create, view, edit, …
ModelForms in Django
This tutorial explains how to use Django ModelForms to automatically generate forms from models, making it easier to build create and update features. It covers form creation, customization with labels and widgets, validation, and saving data to the…