Skip to content

Faishal003/OTP-Verification-in-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Email-OTP-Verification-in-Django

Static Badge Static Badge
The email base sends OTP and verifies the user based on the Django Framework.

💥Features Included💥

  • 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.

Clone the Repository

After installing the prerequisite files just clone the project:

https://github.com/Faishal003/Email-OTP-Verification-in-Django.git

Installation

Note: Make sure you have Python version 3.10.x 👈
Install a few prerequisite files before running the project 👀

pip install -r requirements.txt 

Create Superuser

Run command in terminal:

python manage.py createsuperuser

Model Build

After creating superuser, run the following commands in the Terminal:

python manage.py makemigrations
python manage.py migrate
python manage.py makemigrations

Getting started to run the server

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! 🤩🔥

Note

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.