Django Rest

Django Cookies

Django cookies are a small piece of information that is stored in the client browser. It is used to store users’ information in a file permanently or a specific period of time. So the cookie will automatically remove when gets expire. In this tutorial, you will learn about how to set and get cookies in […]

Share this:

Django Cookies Read More »

Django Caching

Django Caching: To cache something is to save the result of an expensive calculation so that you don’t have to perform the calculation next time. (official doc). Caching is one of the most effective ways to boost an application’s performance. For dynamic websites, when rendering a template you’ll often have to retrieve data from various

Share this:

Django Caching Read More »

Django Mixins

Django Mixins: The mixin classes provide the actions that are used to provide the basic view behavior. Note that the mixin classes provide action methods rather than defining the handler methods, such as .get() and .post(), directly. This allows for a more flexible composition of behavior. (Official page) Why mixins are used? In simple words,

Share this:

Django Mixins Read More »

Middleware In Django

Middleware is a framework of hooks into Django’s request/response processing. It’s a light, low-level “plugin” system for globally altering Django’s input or output. Each middleware component is responsible for doing some specific function. For example, Django includes a middleware component, AuthenticationMiddleware, that associates users with requests using sessions. (source: Django-doc). In other terms which is

Share this:

Middleware In Django Read More »

Signals in Django

In this article, we discuss what are signals in Django and how we can use them in our project. Django includes a “signal dispatcher” which helps allow decoupled applications to get notified when actions occur elsewhere in the framework. In a nutshell, signals allow certain senders to notify a set of receivers that some action

Share this:

Signals in Django Read More »

Scroll to Top