Commit 0f6e6962 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

config pour app nécessitant django-vite

parent f5911b89
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ INSTALLED_APPS = [
    "django.contrib.staticfiles",
    "huey.contrib.djhuey",
    "authcli.apps.AuthcliConfig",
    "django_vite"
]

if DEBUG:
@@ -233,3 +234,17 @@ HUEY = {
        "health_check_interval": 1,  # Check worker health every second.
    },
}

## DJANGO VITE

DJANGO_VITE_ASSETS_PATH = Path(BASE_DIR, "bibnum", "dist")

# If use HMR or not.
DJANGO_VITE_DEV_MODE = DEBUG

# Name of static files folder (after called python manage.py collectstatic)
STATIC_ROOT = Path(BASE_DIR, "collectedstatic")

# Include DJANGO_VITE_ASSETS_PATH into STATICFILES_DIRS to be copied inside
# when run command python manage.py collectstatic
STATICFILES_DIRS = [DJANGO_VITE_ASSETS_PATH]
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ deskew = "^1.3.3"
fusepy = "^3.0.1"
django-auth-cli-certic = "^0.1.3"
pydotplus = "^2.0.2"
django-vite = "^2.1.3"

[tool.poetry.dev-dependencies]
black = "^23.3.0"