module documentation
Routers provide a convenient and consistent way of automatically determining the URL conf for your API. They are used by simply instantiating a Router class, and then registering all the required ViewSets with that router. For example, you might have a `urls.py` that looks something like this: router = routers.DefaultRouter() router.register('users', UserViewSet, 'user') router.register('accounts', AccountViewSet, 'account') urlpatterns = router.urls
Class |
|
The default basic root view for DefaultRouter |
Class |
|
No class docstring; 0/1 property, 0/1 instance variable, 2/4 methods documented |
Class |
|
The default router extends the SimpleRouter, but also adds in a default API root view, and adds format suffix patterns to the URLs. |
Class |
|
No class docstring; 0/1 instance variable, 0/1 class variable, 5/7 methods documented |
Function | escape |
Double brackets in regex of url_path for escape string formatting |
Function | flatten |
Takes an iterable of iterables, returns a single iterable containing all items |
Variable |
|
Undocumented |
Variable |
|
Undocumented |