- build_integration_urlpatterns(list_view_cls, config_form_view_cls, namespace=None)¶
Build URL patterns for integration pages.
This will produce a set of URL patterns for the integration administration pages that take advantage of the specialized views provided. These can be used in a
urls.py, either returned as a
urlpatternsvariable or included using
list_view_cls (type, optional) –
The view responsible for listing available integrations. This should be a subclass of
None, the integration list URL will not be provided in the URL patterns. Consumers should define their own
integration-listURL with the appropriate namespace in order to handle any URL reversing that may occur.
config_form_view_cls (type) –
The view responsible for configuring an integration. This should be a subclass of
None, the integration configuration URLs will not be provided in the URL patterns. This will break the integrations list URL unless consumers provide their own
namespace (unicode, optional) –
The namespace to use for all URL names.
For legacy reasons, this is an empty string. If embedding into other parts of the app, this should be changed. For instance, you may want the admin version to use