We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 724bbec commit 4b31630Copy full SHA for 4b31630
1 file changed
explorer/templatetags/vite.py
@@ -2,12 +2,13 @@
2
3
from django import template
4
from django.conf import settings
5
+from django.contrib.staticfiles.storage import staticfiles_storage
6
from django.utils.safestring import mark_safe
7
from explorer import app_settings, get_version
8
9
register = template.Library()
10
-VITE_OUTPUT_DIR = f"{settings.STATIC_URL}explorer/"
11
+VITE_OUTPUT_DIR = staticfiles_storage.url("explorer/")
12
VITE_DEV_DIR = "explorer/src/"
13
VITE_SERVER_HOST = getattr(settings, "VITE_SERVER_HOST", "localhost")
14
VITE_SERVER_PORT = getattr(settings, "VITE_SERVER_PORT", "5173")
0 commit comments