mirror of
https://github.com/django-components/django-components.git
synced 2025-08-10 09:17:59 +00:00
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# flake8: noqa F401
|
|
import django
|
|
|
|
# Public API
|
|
# isort: off
|
|
from django_components.autodiscover import (
|
|
autodiscover as autodiscover,
|
|
import_libraries as import_libraries,
|
|
)
|
|
from django_components.component import (
|
|
Component as Component,
|
|
ComponentView as ComponentView,
|
|
)
|
|
from django_components.component_registry import (
|
|
AlreadyRegistered as AlreadyRegistered,
|
|
ComponentRegistry as ComponentRegistry,
|
|
NotRegistered as NotRegistered,
|
|
register as register,
|
|
registry as registry,
|
|
)
|
|
from django_components.library import TagProtectedError as TagProtectedError
|
|
from django_components.tag_formatter import (
|
|
ComponentFormatter as ComponentFormatter,
|
|
ShorthandComponentFormatter as ShorthandComponentFormatter,
|
|
TagFormatterABC as TagFormatterABC,
|
|
TagResult as TagResult,
|
|
component_formatter as component_formatter,
|
|
component_shorthand_formatter as component_shorthand_formatter,
|
|
)
|
|
import django_components.types as types
|
|
|
|
# isort: on
|
|
|
|
if django.VERSION < (3, 2):
|
|
default_app_config = "django_components.apps.ComponentsConfig"
|