Skip to content

Commit

Permalink
Use static url setting
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth committed Oct 19, 2023
1 parent cc768a2 commit efb001f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion myhpi/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from django.conf import settings
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
Expand Down Expand Up @@ -25,7 +27,10 @@
),
path("select2/", include("django_select2.urls")),
path("__debug__/", include("debug_toolbar.urls")),
path(".well-known/security.txt", RedirectView.as_view(url="/static/security.txt")),
path(
".well-known/security.txt",
RedirectView.as_view(url=os.path.join(settings.STATIC_URL, "security.txt")),
),
]


Expand Down

0 comments on commit efb001f

Please sign in to comment.