lemoncurry/wellknowns/views/static.py

10 lines
241 B
Python
Raw Permalink Normal View History

from django.views.generic.base import RedirectView
from django.templatetags.static import static
def redirect_to_static(file):
2023-08-10 02:52:37 -04:00
return RedirectView.as_view(url=static("wellknowns/" + file))
2023-08-10 02:52:37 -04:00
keybase = redirect_to_static("keybase.txt")