Files
kennethreitz be20410b75 Add django-bolt API with full read endpoints
Bolt serves as the root ASGI server with Django mounted into it.
API endpoints at /api/ for cameras, lenses, images, users,
collections, and groups — all async with msgspec schemas.

Run with: python manage.py runbolt --dev

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 19:24:24 -04:00

23 lines
493 B
Python

"""
ASGI config for exiftree project.
Bolt is the root server — Django is mounted into it for admin,
templates, and traditional views. The API is handled natively by Bolt.
Run with: python manage.py runbolt --dev
"""
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "exiftree.settings")
django.setup()
from exiftree.api import api # noqa: E402
# Mount Django's ASGI app for admin + template views
api.mount_django("/", clear_root_path=True)
application = api