A Django project with Django Rest Framework (DRF) for JWT-based authentication, including a custom user model and authentication serializer.
- ๐ ๏ธ Custom User Model with email-based authentication.
- ๐ JWT-based authentication for user registration and login.
- ๐ REST APIs for user registration and login.
- โ Proper validation and error handling in APIs.
- ๐ Python 3.10 or above
- ๐ Django 3.2 or above
- ๐ฆ Django Rest Framework
- ๐ Django Rest Framework SimpleJWT
gh repo clone sanjaraiy/Django_Wolfpack
cd jwtsystem
python -m venv env
.\env\Scripts\activate
pip install -r requirements.txt
Create a .env file in the root directory and add the following variables:
SECRET_KEY=your_secret_key_here
DEBUG=True
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
jwtsystem/
โโโ jwtsystem/
โ โโโ __init__.py
โ โโโ asgi.py
โ โโโ settings.py
โ โโโ urls.py
โ โโโ wsgi.py
โโโ myapp/
โ โโโ __init__.py
โ โโโ admin.py
โ โโโ apps.py
โ โโโ models.py
โ โโโ serializers.py
โ โโโ tests.py
โ โโโ urls.py
โ โโโ views.py
โโโ manage.py
โโโ requirements.txt