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.
-
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. -
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.
-
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.
-
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)
Still valid in 2021!!
Great one!! Django will register more usage and become a high demand tech in future.
Awesome article, this one is very usefull as well especially for developing REST Apis with Django and DRF github.com/Abdenasser/dr_scaffold
Thanks for the info.
How about using python-dotenv instead of python-decouple? what are the major differences if there is any?
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,
Okay, thanks!