#!/usr/bin/env python """Django's command line, at the repo root. At the root rather than in a subdirectory so that every `python manage.py` works with no `cd`, and so that the two halves of the repo — this and `frontend/` — are peers. `mise install` from here sets up both. """ import os import sys def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "server.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Django is not importable. `mise install` from the repo root creates " "the venv; then `pip install -r requirements.txt`." ) from exc execute_from_command_line(sys.argv) if __name__ == "__main__": main()