init commit

This commit is contained in:
2025-08-10 15:31:47 +09:00
commit 377edb22d8
25 changed files with 1922 additions and 0 deletions

11
ui/context_processors.py Normal file
View File

@@ -0,0 +1,11 @@
from django.conf import settings
def public_settings(request):
return {
'DEBUG': settings.DEBUG,
}
def current_user(request):
# Very lightweight 'user' from API token in session
auth = request.session.get('auth', {})
return {'api_user': auth.get('user')}