Articles, discussions, and solutions for Python’s Django web framework.

DRF JWT Authentication

Summary: In this tutorial, you will learn to implement JSON Web Token (JWT) authentication in Django rest framework with the help of the examples. What is Token Authentication? Token authentication…

0 Comments

DRF Token Authentication

Summary: In this tutorial, you will learn what is token authentication and how you can implement it in Django Rest Framework (DRF). What is Token Authentication? Token authentication is a…

0 Comments

AbstractUser vs AbstractBaseUser [Django]

Summary: In this tutorial, you will learn the difference between AbstractUser and AbstractBaseUser classes in Django. What are AbstractUser and AbstractBaseUser? AbstractUser and AbstractBaseUser are both classes provided by Django…

1 Comment

OneToOneField vs ForeignKey [Django]

Summary: In this tutorial, you will learn the difference between OneToOneField and ForeignKey in Django with the help of the examples. Difference between OneToOneField and ForeignKey A OneToOneField in Django…

0 Comments

What does on_delete do in Django?

Summary: In this tutorial, you will learn the significance of the on_delete parameter in ForeignKey field in Django. In Django, the on_delete parameter is used to specify what should happen…

0 Comments