Loading jama/settings.py +15 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ INSTALLED_APPS = [ "django.contrib.staticfiles", "huey.contrib.djhuey", "authcli.apps.AuthcliConfig", "django_vite" ] if DEBUG: Loading Loading @@ -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] pyproject.toml +1 −0 Original line number Diff line number Diff line Loading @@ -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" Loading Loading
jama/settings.py +15 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ INSTALLED_APPS = [ "django.contrib.staticfiles", "huey.contrib.djhuey", "authcli.apps.AuthcliConfig", "django_vite" ] if DEBUG: Loading Loading @@ -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]
pyproject.toml +1 −0 Original line number Diff line number Diff line Loading @@ -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" Loading