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 APIRootView The default basic root view for DefaultRouter
Class BaseRouter No class docstring; 0/1 property, 0/1 instance variable, 2/4 methods documented
Class DefaultRouter The default router extends the SimpleRouter, but also adds in a default API root view, and adds format suffix patterns to the URLs.
Class SimpleRouter No class docstring; 0/1 instance variable, 0/1 class variable, 5/7 methods documented
Function escape_curly_brackets 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 DynamicRoute Undocumented
Variable Route Undocumented
def escape_curly_brackets(url_path): (source)

Double brackets in regex of url_path for escape string formatting

def flatten(list_of_lists): (source)

Takes an iterable of iterables, returns a single iterable containing all items

DynamicRoute = (source)

Undocumented

Undocumented