The email base sends OTP and verifies the user based on the Django Framework.
- Create an account.
- An OTP is sent to your email.
- The verification link is valid for one minute.
- Verify User.
- Then log in to that user.
- Add try-catch functionality.
After installing the prerequisite files just clone the project:
https://github.com/Faishal003/Email-OTP-Verification-in-Django.git
Note: Make sure you have Python version 3.10.x 👈
Install a few prerequisite files before running the project 👀
pip install -r requirements.txt
Run command in terminal:
python manage.py createsuperuser
After creating superuser
, run the following commands in the Terminal:
python manage.py makemigrations
python manage.py migrate
python manage.py makemigrations
Run command in terminal:
Execute: python manage.py runserver
Open up a browser and visit: http:https://127.0.0.1:8000/ , then you will see the Website💥❤️.
All Set! 🤩🔥
In the settings.py file, use your email and password. Make sure you have enabled two-factor authentication and create an app password in your Gmail account.