mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 18:17:28 +02:00
Display details about tournaments
This commit is contained in:
14
apps/registration/templatetags/getconfig.py
Normal file
14
apps/registration/templatetags/getconfig.py
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright (C) 2020 by Animath
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import os
|
||||
|
||||
from django import template
|
||||
|
||||
|
||||
def get_env(key: str) -> str:
|
||||
return os.getenv(key)
|
||||
|
||||
|
||||
register = template.Library()
|
||||
register.filter("get_env", get_env)
|
Reference in New Issue
Block a user