A simple app to demonstrate django-jwt-authentication using Django REST Framework
Project description
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:
-e git+ssh://git@github.com/ShahzaibMumtaz07/django_drf_jwt.git#egg=django_drf_jwt
Install the requirements:
pip install -r requirements.txt
Add app to the INSTALLED_APPS in the project:
INSTALLED_APPS = [
...,
'django_drf_jwt',
...,
]
Include the app urls in your project urls.py:
from django.urls import path, include
urlpatterns = [
path('django_drf_jwt/', include('django_drf_jwt.urls'))
]
Apply the migrations if not applied:
python manage.py migrate
Finally, run the development server:
python manage.py runserver
The API endpoints will be available at 127.0.0.1:8000/django_drf_jwt/api-token-auth/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_drf_jwt-0.0.6.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for django_drf_jwt-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1122e5ba962a7f1c2ec7afc0356abaf60ae195cc5dc472a72c596d41afc0e779 |
|
MD5 | 3b69d14a9410a7e8f3dec524e314f3b3 |
|
BLAKE2b-256 | 2aeef064ba7474d9290a3afc87c132ebad57c93649187e121c6ffbcd9a9fc104 |