Issues (463)

djoser/urls/jwt.py (4 issues)

1
from django.urls import re_path
0 ignored issues
show
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
The name re_path does not seem to exist in module django.urls.
Loading history...
2
from rest_framework_simplejwt import views
0 ignored issues
show
Unable to import 'rest_framework_simplejwt'
Loading history...
3
4
urlpatterns = [
0 ignored issues
show
Coding Style Naming introduced by
The name urlpatterns does not conform to the constant naming conventions ((([A-Z_][A-Z0-9_]*)|(__.*__))$).

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
5
    re_path(r"^jwt/create/?", views.TokenObtainPairView.as_view(), name="jwt-create"),
6
    re_path(r"^jwt/refresh/?", views.TokenRefreshView.as_view(), name="jwt-refresh"),
7
    re_path(r"^jwt/verify/?", views.TokenVerifyView.as_view(), name="jwt-verify"),
8
]
9