Skip to main content

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


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)

Uploaded Source

Built Distribution

django_drf_jwt-0.0.6-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page