8fadaba002
Naming is much more clear this way
11 lines
230 B
Python
11 lines
230 B
Python
from django.conf.urls import patterns, url, include
|
|
|
|
from rest_framework import routers
|
|
|
|
from . import views
|
|
|
|
rest_router = routers.DefaultRouter()
|
|
rest_router.register(r'ducks', views.DuckViewSet)
|
|
|
|
urlpatterns = rest_router.urls
|