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

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…

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

How to Upload File in Django?

Summary: In this tutorial, you will learn how to handle file upload using model and form in Django framework. In Django, you can handle file uploads using a model field…

0 Comments

What is Slug in Django?

A Slug in Django is a string that contains only letters, numbers, underscores, or hyphens. For examples, 'hello-world', 'what-is-slug', 'learn-django', etc. Slugs are generally used in URLs. For example, in…

0 Comments