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):
return RedirectView.as_view(url=static('wellknowns/' + file))
keybase = redirect_to_static('keybase.txt')