mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-24 06:20:28 +00:00
11 lines
291 B
Python
11 lines
291 B
Python
from core.models import Config
|
|
|
|
|
|
def config_context(request):
|
|
return {
|
|
"config": Config.system,
|
|
"config_identity": (
|
|
request.identity.config_identity if request.identity else None
|
|
),
|
|
"top_section": request.path.strip("/").split("/")[0],
|
|
}
|