CompleteAuth is a Django project that provides a complete authentication system with features like user registration, email OTP verification, and full admin access. This project can serve as a foundational structure for any web application that requires secure user authentication.
- Create User: New users can register and create accounts.
- Register: Users can register with an email and password.
- Email OTP Verification: Registration includes email verification via a one-time password (OTP) sent to the user's email.
- Admin Access: Admins have full access to manage users and other resources via the Django admin interface.
- User Authentication: Secure login and authentication system.
-
Clone the repository:
git clone https://github.com/Prakhar2706/completeauth.git
-
Navigate to the project directory:
cd completeauth -
Create a virtual environment:
python -m venv env
-
Activate the virtual environment:
- On Windows:
.\env\Scripts\activate
*On macOS/Linux:
source env/bin/activate -
Install the dependencies:
pip install -r requirements.txt
-
Create migrations for your models:
python manage.py makemigrations
-
Apply migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Visit http://127.0.0.1:8000 in your browser to access the app.
-
For admin panel:
http://127.0.0.1:8000/admin
Django==5.0
djangorestframework==3.14.0- Register: Users can sign up by providing an email and password.
- OTP Verification: An OTP will be sent to the user's email for verification.
- Admin Access: Admins can manage users and other functionalities through the Django admin panel.
- Authentication: The system ensures secure login and account verification.