mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 10:40:59 +00:00
11 lines
304 B
Python
11 lines
304 B
Python
from core.models import Config
|
|
|
|
|
|
def config_context(request):
|
|
return {
|
|
"config": Config.load_system(),
|
|
"config_identity": (
|
|
Config.load_identity(request.identity) if request.identity else None
|
|
),
|
|
"top_section": request.path.strip("/").split("/")[0],
|
|
}
|