Category: Python

Django Rest API using Django REST Framework- Authentication

Authentication is one of the major parts of any application either it is web or desktop. In this tutorial, we are going to learn Authentication using Django REST Framework. We can authenticate in two way:1. Using Django REST Framework’s built-in authentication2. Using Rest-auth module Let’s start with the built-in authentication process. In this process, first […]

Read full story...

Django tutorial-1: Introduction.

Django is a web application development framework based on the python programming language. It follows the MVT(Model view template) architecture patterns. Django creates a virtual server to run and it has a built-in sqlite3 database. It is also used to develop the API endpoint for different SPA applications like Angular, ReactJS, etc. It is easy […]

Read full story...

Python Built-in Function

Here you will get some python built-in functions. After some sort of research we find out all these python built-in function for you. Function Description abs() returns the absolute value of a number all() returns true when all elements in iterable is true any() Checks if any Element of an Iterable is True ascii() Returns […]

Read full story...

Swapping the case in python

Uppercase to lowercase and vice versa is not really difficult at all in python programming. Let’s do swapping the case in python together. First of all, take the string input and then call the swap_case() function to swap the case and return the operational string to print. Let’s implement the swap_case function with a string […]

Read full story...

Django crispy form

Sometimes we need to add bootstrap or any other library class to create responsive and well-designed form. We can do it using Django-crispy form. Here I add the steps to create a responsive form using the crispy form and Bootstrap 4. Step1: Install the crispy form using the following command. Step2: Open the settings.py file from […]

Read full story...