
Python
1
Вклад в тег
with open(name, "r") as file:
pass
import builtins
with builtins.open(name, "r") as file:
pass
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
)
}
url(r'^api/v1/auth/', include('djoser.urls')),
url(r'^api/v1/auth/', include('djoser.urls.authtoken')),
url(r'^api/v1/auth/', include('djoser.urls.jwt')),