How to confirm email address with Django REST framework
Автор: Yuri Mednikov
Загружено: 2023-02-22
Просмотров: 3910
The good practice is to validate that the email address which was used by the user to create a new account is actually a real working email address. This process is called “email confirmation” and by far is familiar to most of us. While Django comes as “battery included” framework, it lacks this functionality and therefore software developers have to make use of 3rd party libraries in order to implement email confirmation flow. However, this is not a rocket science and can be easily implemented using “vanilla” Django and Django REST framework.
In this video we observe how to confirm email addresses with Django REST framework.
00:00 - Start
02:18 - Adding models
04:01 - Implement API views
04:56 - UserInformationAPIView class
06:15 - SendEmailConfirmationTokenAPIView class
08:56 - Testing API views
09:58 - Writing tests for API views
14:20 - Test API views with Insomnia
17:08 - How to send emails with Django
20:15 - Implement an email sending function
23:55 - Testing the email sending function
24:30 - Implement the confirm email view
27:20 - Testing the confirm email view
Source code for this tutorial: https://git.yurimednikov.xyz/yuri/dja...
#python #django #djangorestframework #djangotutorial #pythonprogramming #python3 #pythonprogramming #webdevelopment #webdeveloper #coding #codetutorial #tech #programming #programmingtutorials #programmingtutorial #code
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: