Commit 79e3301d authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

adapt django-vite settings

parent 87c04d21
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
.ruff_cache
src/normanum
src/ui/front/node_modules
src/ui/front/dist
src/resources/management/commands/sandbox/
src/processing
uv.lock
+1 −1
Original line number Diff line number Diff line
__version__ = "0.1.0"
__version__ = "0.1.1"
+3 −2
Original line number Diff line number Diff line
@@ -294,9 +294,10 @@ CACHES = {
LOGIN_REDIRECT_URL = "/ui/"

if "bibnum" in AUTO_REGISTER_APPS:
    DJANGO_VITE_ASSETS_PATH = Path(BASE_DIR, "static", "bibnum")
    # DJANGO_VITE_ASSETS_PATH = Path(BASE_DIR, "static", "bibnum")
    DJANGO_VITE_DEV_MODE = DEBUG
    DJANGO_VITE_MANIFEST_PATH = Path(BASE_DIR, "static", "bibnum", "manifest.json")
    DJANGO_VITE_STATIC_URL_PREFIX = "bibnum"
    # DJANGO_VITE_MANIFEST_PATH = Path(BASE_DIR, "static", "bibnum", "manifest.json")

if "ui" in AUTO_REGISTER_APPS:
    STATICFILES_DIRS.append(Path(BASE_DIR, "ui", "front", "dist"))