DEV Community

Cover image for 4 Useful Django Packages
Ramkumar
Ramkumar

Posted on

4 Useful Django Packages

Django is the most popular Python framework, which you can build a robust web application. Django gives more features out of the box other than there are more 3rd party packages which are helpful to make Django application more efficient. So, here is the list of packages I came across and used.

  1. Django REST Framework

    If you are looking for developing a REST API using Django, then definitely DRF is the best and most powerful toolkit for building Web API.
    A small amount of code is enough to transform the existing Django project into a REST API.

  2. Djoser

    Recently, I work on REST API and thought of re-creating USER MODEL function like login, logout, reset-password and other stuffs for every project is tedious process. So, I searched for some alternatives and then came across with Djoser package. The Djoser package is an REST implementation of Django authentication system. It provides set of Django REST Framework that handles a basic actions like login, logout, reset-password, account activation.

    Djoser allows you to create an user account with CUSTOM_USER_MODEL and social accounts like Google, Facebook. Authentication process is done by using token based authentication and JSON Web Token Authentication.

  3. python-decouple

    Confidential information should be placed in Environment variables, not in source code. Python Decouple helps you to organize your settings confidential information. It helps us to access that info in environment variables.

  4. django-cloudinary-storage

    Django Cloudinary storage provides Cloudinary storage for media and static files. A quick and small amount of line of configuration you can start using Cloudinary, so you can serve your static and media files of Django by Cloudinary

Top comments (6)

Collapse
 
aatmaj profile image
Aatmaj

Moreover, this is a great time for the django framework, as it has reached stability and provides a great set of features, still being in a very active phase of development with great plans for the near future.
From 10 reasons to use Django in 2020

Still valid in 2021!!

Collapse
 
ramkumarm15 profile image
Ramkumar

Great one!! Django will register more usage and become a high demand tech in future.

Collapse
 
abdenasser profile image
Nasser El Idrissi • Edited

Awesome article, this one is very usefull as well especially for developing REST Apis with Django and DRF github.com/Abdenasser/dr_scaffold

Collapse
 
earthcomfy profile image
Hana Belay

Thanks for the info.
How about using python-dotenv instead of python-decouple? what are the major differences if there is any?

Collapse
 
ramkumarm15 profile image
Ramkumar

Not much difference! In python-dotenv, you need to load .env file in settings.py to access the data. In python-decouple you can directly access the data. Additionally, python-decouple specifically build for django and flask environment variables,

Collapse
 
earthcomfy profile image
Hana Belay

Okay, thanks!