django-vite-beta 3.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ from .core.asset_loader import DjangoViteConfig
2
+
3
+ __all__ = ["DjangoViteConfig"]
django_vite/apps.py ADDED
@@ -0,0 +1,21 @@
1
+ from django.apps import AppConfig
2
+ from django.core import checks
3
+
4
+ from django_vite.core.asset_loader import DjangoViteAssetLoader
5
+
6
+
7
+ class DjangoViteAppConfig(AppConfig):
8
+ name = "django_vite"
9
+ verbose_name = "Django Vite"
10
+
11
+ def ready(self) -> None:
12
+ # Make Loader instance at startup to prevent threading problems
13
+ # but do not crash while doing so.
14
+ DjangoViteAssetLoader.instance()
15
+
16
+ # Check for potential errors with loading manifests in DjangoViteConfigs.
17
+ checks.register(check_loader_instance, checks.Tags.staticfiles)
18
+
19
+
20
+ def check_loader_instance(**kwargs):
21
+ return DjangoViteAssetLoader.instance().check(**kwargs)
File without changes