From 4f52f86de5881617c9785cf5340723489db086e4 Mon Sep 17 00:00:00 2001 From: Asif Hossain <59248212+asif-codes@users.noreply.github.com> Date: Tue, 18 Jan 2022 19:23:34 +0600 Subject: [PATCH] fixed missing code block issue in getting_started page and removed redundant import in settings page (#513) --- docs/getting_started.rst | 2 -- docs/settings.rst | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 08c8ebcf1..6c87b9c92 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -59,11 +59,9 @@ allow API users to verify HMAC-signed tokens without having access to your signing key: .. code-block:: python - # add `TokenVerifyView` to your import from rest_framework_simplejwt.views import TokenVerifyView - # and define it in your `urlpatterns` urlpatterns = [ ... path('api/token/verify/', TokenVerifyView.as_view(), name='token_verify'), diff --git a/docs/settings.rst b/docs/settings.rst index 6a2994bcc..1e065b0ab 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -11,7 +11,6 @@ Some of Simple JWT's behavior can be customized through settings variables in # Django project settings.py from datetime import timedelta - from django.conf import settings ... SIMPLE_JWT = { @@ -22,7 +21,7 @@ Some of Simple JWT's behavior can be customized through settings variables in 'UPDATE_LAST_LOGIN': False, 'ALGORITHM': 'HS256', - 'SIGNING_KEY': settings.SECRET_KEY, + 'SIGNING_KEY': SECRET_KEY, 'VERIFYING_KEY': None, 'AUDIENCE': None, 'ISSUER': None,