https://github.com/zero1max/email-verification-django
A Django-based user registration system with email verification.
https://github.com/zero1max/email-verification-django
django django-rest-framework python3 sqlite3
Last synced: about 1 month ago
JSON representation
A Django-based user registration system with email verification.
- Host: GitHub
- URL: https://github.com/zero1max/email-verification-django
- Owner: zero1max
- License: mit
- Created: 2025-03-07T16:22:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-12T06:48:36.000Z (over 1 year ago)
- Last Synced: 2026-01-02T13:51:18.608Z (5 months ago)
- Topics: django, django-rest-framework, python3, sqlite3
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Email Verification in Django
This project is a simple Django-based user registration system with email verification.
## Features
- User registration with email and password
- Email verification using a one-time code
- Authentication and login after successful verification
## Installation
1. Clone the repository:
```sh
git clone https://github.com/yourusername/email-verification-django.git
cd email-verification-django
```
2. Create a virtual environment and activate it:
```sh
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. Install dependencies:
```sh
pip install -r requirements.txt
```
4. Configure your email settings in `settings.py`:
```python
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.gmail.com"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = "your-email@gmail.com"
EMAIL_HOST_PASSWORD = "your-email-password"
```
5. Run migrations:
```sh
python manage.py migrate
```
6. Start the development server:
```sh
python manage.py runserver
```
## Usage
- Open `http://127.0.0.1:8000/register/` in your browser.
- Enter your email and password.
- Check your email for the verification code.
- Enter the verification code to complete registration.