Files
photos.kennethreitz.org/core/context_processors.py
T
kennethreitz 54bd5bc122 Convert to single-tenant portfolio tool, replace Alpine with HTMX
- Remove groups app and multi-user features (user listing, registration,
  @username profiles, SINGLE_TENANT toggle)
- Switch from JWT/localStorage auth to Django session auth
- Replace Alpine.js with HTMX + vanilla JS where needed
- Add SiteConfig model for customizable site title/tagline
- Add photo manager page (/manage/) with multi-select and bulk actions
- Add python-dotenv so manage.py loads .env automatically
- Server-render dashboard, search, collections (no client-side framework)
- Keep vanilla JS only for upload (drag-drop/progress) and manage (multi-select)
- Simplify gallery URLs from /@username/collections/ to /collections/
- Clean up API: remove groups/users endpoints, add /images/manage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 14:26:18 -04:00

10 lines
195 B
Python

from core.models import SiteConfig
def site_context(request):
config = SiteConfig.load()
return {
'site_title': config.site_title,
'site_tagline': config.tagline,
}