Created
July 31, 2018 20:09
-
-
Save jamesalbert/48138787825c72e1d33513718389e224 to your computer and use it in GitHub Desktop.
default auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import re_path | |
from rest_framework.authtoken.views import obtain_auth_token | |
urlpatterns = [ | |
re_path(r'^api-token-auth/$', obtain_auth_token) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment