Django REST Framework Training

JWT Authentication

Next ❯ Implementing JWT Authentication What is JWT Authentication? JWT (JSON Web Token) Authentication is a stateless authentication method that generates a signed token containing user information. It is widely used for secure and scalable authentication. Configuration in DRF Authentication is the process of verifying the identity of users accessing an API. DRF provides several […]

JWT Authentication Read More »

Token Authentication part 2 (Registration)

Next ❯ Token Authentication(registration): Token Authentication is commonly used to provide a secure way for clients to authenticate and access protected resources. Here’s how to implement user registration with token generation. 1. Install djangorestframework-authtoken pip install djangorestframework-authtoken 2. Add Installed Apps (in settings.py) INSTALLED_APPS = [     ‘django.contrib.admin’,     ‘django.contrib.auth’,     ‘django.contrib.contenttypes’,     ‘django.contrib.sessions’,     ‘django.contrib.messages’,     ‘django.contrib.staticfiles’,     ‘rest_framework’,     ‘rest_framework.authtoken’,  #

Token Authentication part 2 (Registration) Read More »

Token Authentication part 1 (Login)

Next ❯ Token Authentication (Login) 1. Create URL for Login # books/urls.py from django.urls import path from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [     path(‘login/’, obtain_auth_token, name=’login’),  # URL for login ] Explanation: →from django.urls import path    Imports the path function from django.urls, which is used to define URL patterns in Django.    It is essential for

Token Authentication part 1 (Login) Read More »

E-commerce website (Using Django Rest Framework & React)

❮ Previous Next ❯ E-commerce Website using Django & React This e-commerce platform is a full-stack web application that is built using Django (backend) and React (frontend). It allows users to browse products, add items to the cart, manage orders, and complete purchases through a secure payment system. The backend efficiently handles authentication, product management,

E-commerce website (Using Django Rest Framework & React) Read More »

Blog Postings (Using Django Rest Framework + JavaScript)

❮ Previous Next ❯ Blog Posting Platform with Django and JavaScript This blog posting platform is a full-stack web application built using Django REST Framework (DRF) for the backend and JavaScript, HTML, and CSS for the frontend. The platform allows users to register, log in, create, read, update, and delete blog posts, ensuring secure access

Blog Postings (Using Django Rest Framework + JavaScript) Read More »