Created
July 10, 2014 22:50
-
-
Save shashisp/c50c795d4b76e1fb0794 to your computer and use it in GitHub Desktop.
Django-REST-Example
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 vendors import views | |
from rest_framework.routers import DefaultRouter | |
router = DefaultRouter() | |
router.register(r'organisations', views.OraganisationViewSet) | |
urlpatterns = patterns('', | |
url(r'^api/', include(router.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