evorepo/main/context_processors.py
Morten Linderud 60fb6b7d1b index: add support for MASTODON_LINK
Signed-off-by: Morten Linderud <morten@linderud.pw>
2022-11-18 20:23:32 +01:00

6 lines
132 B
Python

from django.conf import settings
def mastodon_link(request):
return {'MASTODON_LINK': getattr(settings, "MASTODON_LINK", "")}