Skip to content

Instantly share code, notes, and snippets.

@jamesalbert
Created July 31, 2018 20:09
Show Gist options
  • Save jamesalbert/48138787825c72e1d33513718389e224 to your computer and use it in GitHub Desktop.
Save jamesalbert/48138787825c72e1d33513718389e224 to your computer and use it in GitHub Desktop.
default auth
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