Skip to content

Commit

Permalink
fixed missing code block issue in getting_started page and removed re…
Browse files Browse the repository at this point in the history
…dundant import in settings page (#513)
  • Loading branch information
asif-codes committed Jan 18, 2022
1 parent acae73f commit 4f52f86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
3 changes: 1 addition & 2 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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,
Expand Down

0 comments on commit 4f52f86

Please sign in to comment.