Django

Views & URLs

This section covers how views process incoming requests, interact with models and forms, and return rendered content or data. It also explains how URL routing connects user requests to the correct view using clear and maintainable patterns.

Django urls.py: Routing, URL Patterns, and Namespacing

A beginner-friendly guide to Django’s urls.py, explaining how URL routing connects requests to views, how to define static and dynamic URL patterns, and how to organize routes with include(). The article also covers URL names, reverse URL resolution, common routing mistakes, best practices, and namespacing for avoiding conflicts in larger Django projects.

In a Django project, urls.py is one of the most important files because it defines how incoming web requests are routed to views. When a use ...

Django’s Function-Based Views

A practical introduction to Django’s function-based views, explaining how they handle requests and responses, connect to URLs, render templates, process forms, interact with models, and manage redirects. The article also compares function-based views with class-based views and highlights their advantages, limitations, and best practices.

Django is one of the most widely used web frameworks in the Python ecosystem. It provides developers with a structured, secure, and efficient way to build web applications. At the heart of every Djang ...

Introduction to Django Class-Based Views

This article introduces Django’s class-based views and explains how they organize request-handling logic using Python classes. It covers the base View class, HTTP method handlers, generic views, URL configuration, common attributes and methods, mixins, CRUD patterns, and situations where class-based views are preferable to function-based views.

Django views receive web requests and return web responses.

A view might render an HTML template, process a form, redirect the user, return JSON, or r ...

Join the Newsletter

Practical insights on Django, backend systems, deployment, architecture, and real-world development — delivered without noise.

Get updates when new guides, learning paths, cheat sheets, and field notes are published.

No spam. Unsubscribe anytime.



There is no third-party involved so don't worry - we won't share your details with anyone.