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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_drf_jwt-0.0.6.tar.gz.
File metadata
- Download URL: django_drf_jwt-0.0.6.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101cd25d3ad8581034f6b4c4fd8b8b122a83a4d842325c6b9c9a438d11bfaefb
|
|
| MD5 |
99cd7c90a60ff11a1e94aacf5bdee28c
|
|
| BLAKE2b-256 |
36bdb3476b44d7e0ee368f06fa80b07e76364252a5185961822e58060877e0d5
|
File details
Details for the file django_drf_jwt-0.0.6-py3-none-any.whl.
File metadata
- Download URL: django_drf_jwt-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1122e5ba962a7f1c2ec7afc0356abaf60ae195cc5dc472a72c596d41afc0e779
|
|
| MD5 |
3b69d14a9410a7e8f3dec524e314f3b3
|
|
| BLAKE2b-256 |
2aeef064ba7474d9290a3afc87c132ebad57c93649187e121c6ffbcd9a9fc104
|