Skip to content

Instantly share code, notes, and snippets.

@tomchristie
Created April 25, 2013 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomchristie/5461160 to your computer and use it in GitHub Desktop.
Save tomchristie/5461160 to your computer and use it in GitHub Desktop.
from django.conf.urls import patterns, url, include
from rest_framework.routers import AutoRouter
urlpatterns = patterns('',
url(r'^', include(AutoRouter().urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment