mirror of
https://github.com/kennethreitz/photos.kennethreitz.org.git
synced 2026-06-21 15:10:56 +00:00
be20410b75
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>
23 lines
493 B
Python
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
|