Tag: Django Tutorial
Best Django Tutorial with Real World Problems on Ajax, Web Development, Front-End Framework, JQuery, JSON, and Javascript, Python Libraries, API’s, Rest framework and much more.
Throttling in Django Rest FrameWork
Last updated on 28th February 2023 by Madderla Saikumar | Category: Django Tutorial
Throttling in Django Rest Framework (DRF) is a way to limit the rate of incoming requests to your API. This can be useful in preventing abuse of your API, protecting against Denial-of-Service (DoS) attacks, and ensuring that your API can handle high levels of traffic. DRF provides several built-in classes that you can use to […]
Handling HTTP status codes in Django rest FrameWork
Last updated on 23rd February 2023 by Madderla Saikumar | Category: Django Tutorial
Django Rest Framework (DRF) provides built-in support for handling HTTP status codes in API responses. The DRF API view returns a response object containing an HTTP status code when someone requests it. You can set the status code in the response manually or the request processing result can determine it automatically. The framework automatically handles […]
User-defined exceptions in Django Rest FrameWork
Last updated on 22nd February 2023 by Madderla Saikumar | Category: Django Tutorial
Django Rest Framework (DRF) provides several built-in exceptions to handle common API errors, but it’s also possible to define your own custom exceptions or User-defined exceptions to handle specific error scenarios. To define a User-defined exception in DRF, create a new module or file. Define the exception class in that file. For example, you could […]
Authentication in Django Rest FrameWork
Last updated on 22nd February 2023 by Madderla Saikumar | Category: Django Tutorial
Authentication in Django Rest Framework is a process of verifying the identity of a user before granting access to protected resources. This article discusses the various authentications methods provided by Django Rest Framework and how to implement them in your project. Whether you are building an API for mobile applications or web services, understanding authentications […]
Validation of Requests in Django Rest FrameWork
Last updated on 21st February 2023 by Madderla Saikumar | Category: Django Tutorial
Validation of requests in Django refers to the process of checking the data submitted through incoming requests to your web application or API, ensuring that it meets the required specifications and is free from errors, inconsistencies, or malicious input. Django Rest Framework provides various ways to validation of requests coming into your API. Some of […]
Remote User Authentication in Django Rest Framework
Last updated on 20th February 2023 by Madderla Saikumar | Category: Django Tutorial
Remote User Authentication is a way to authenticate users in Django Rest Framework (DRF) using a third-party authentication provider, such as an OAuth 2.0 provider like Google or Facebook. This allows users to log in to your DRF application using their existing credentials from another service. To implement Remote User Authentication in DRF, you need […]
OAuth2 Authentication in Django rest framework
Last updated on 20th February 2023 by Madderla Saikumar | Category: Django Tutorial
OAuth2 is an authentication and authorization framework that allows users to share their private resources (such as photos, videos, and other data) stored on one site with another site without compromising security. In Django Rest Framework, OAuth2Authentication is an authentication class provided by the django-oauth-toolkit package that can be used to implement OAuth2 authentication in […]
Session Authentication in Django
Last updated on 19th February 2023 by Madderla Saikumar | Category: Django Tutorial
Django Rest Framework (DRF) provides several built-in authentication classes, including session authentication. Session authentication allows users to authenticate by using Django’s built-in session framework, which relies on a session ID cookie that is sent with each HTTP request. To enable session authentication in DRF, you need to include the SessionAuthentication class in the DEFAULT_AUTHENTICATION_CLASSES list […]
Token Authentication in Django Rest FrameWork
Last updated on 19th February 2023 by Madderla Saikumar | Category: Django Tutorial
Token Authentication in Django Rest Framework is a type of authentication mechanism used to authenticate and authorize requests made by clients to the server. It works by generating a unique token for each authenticated user and sending it along with every subsequent request made by the user. This token serves as a credential to identify […]
Basic Authentication in Django
Last updated on 18th February 2023 by Madderla Saikumar | Category: Django Tutorial
Basic Authentication is a simple authentication mechanism in Django Rest Framework that authenticates incoming HTTP requests by checking the provided credentials, such as a username and password, encoded in base64. To use Basic Authentication in Django Rest Framework, you can add the following to your settings.py file: With this configuration, all incoming requests to your […]