django-drf-jwt-0.0.6
توضیحات
A simple app to demonstrate django-jwt-authentication using Django REST Framework
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-drf-jwt-0.0.6 |
| نام | django-drf-jwt |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shahzaib Mumtaz |
| ایمیل نویسنده | shahzaib.mumtaz.20195@gmail.com |
| آدرس صفحه اصلی | https://github.com/ShahzaibMumtaz07/django_drf_jwt.git |
| آدرس اینترنتی | https://pypi.org/project/django-drf-jwt/ |
| مجوز | MIT |
# Django REST Framework JWT Example
A simple app to use django-jwt-authentication using Django REST Framework
## Running the Project Locally
First, add this to your requirements file of the project:
```bash
-e git+ssh://git@github.com/ShahzaibMumtaz07/django_drf_jwt.git#egg=django_drf_jwt
```
Install the requirements:
```bash
pip install -r requirements.txt
```
Add app to the INSTALLED_APPS in the project:
```bash
INSTALLED_APPS = [
...,
'django_drf_jwt',
...,
]
```
Include the app urls in your project urls.py:
```bash
from django.urls import path, include
urlpatterns = [
path('django_drf_jwt/', include('django_drf_jwt.urls'))
]
```
Apply the migrations if not applied:
```bash
python manage.py migrate
```
Finally, run the development server:
```bash
python manage.py runserver
```
The API endpoints will be available at **127.0.0.1:8000/django_drf_jwt/api-token-auth/**
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.0 | Django |
| >=3.12.4 | djangorestframework |
| >=1.11.0 | djangorestframework-jwt |
نحوه نصب
نصب پکیج whl django-drf-jwt-0.0.6:
pip install django-drf-jwt-0.0.6.whl
نصب پکیج tar.gz django-drf-jwt-0.0.6:
pip install django-drf-jwt-0.0.6.tar.gz