duck.backend.django.urls¶
Proxy module for Django which is essential for configuring urlpatterns registered with Duck to be accessible within Django.
Module Contents¶
Functions¶
Returns all urlpatterns registered within Duck converted to urlpatterns understood by Django. |
|
Returns all urlpatterns registered within Duck including blueprint urlpatterns. |
Data¶
API¶
- exception duck.backend.django.urls.DjangoURLConflict(message, **kws)¶
Bases:
duck.exceptions.all.RouteErrorRaised when a URL pattern that is said to be only known to Django has been defined within Duck.
Initialization
Stores the error message in the
messageattribute.- Parameters:
message – The error message.
**kws – Additional keyword arguments.
- duck.backend.django.urls.get_correct_urlpatterns() List¶
Returns all urlpatterns registered within Duck converted to urlpatterns understood by Django.
- duck.backend.django.urls.get_duck_urlpatterns() List¶
Returns all urlpatterns registered within Duck including blueprint urlpatterns.
- duck.backend.django.urls.urlpatterns¶
‘get_correct_urlpatterns(…)’