If you use an .env file in your Python / Django project, you might use something like the python-dotenv library to load the file, making the variables available to Python.
Did you know that uv makes this dependency obsolete? Check my new article: https://www.loopwerk.io/articles/2025/uv-keeps-getting-better/.
@kevinrenskers `#!/usr/bin/env -S uv run --env-file .env` in manage.py
@adamghill Yeah or just `#!/usr/bin/env -S uv run` if you don't need to load an env file. Still allows you to run manage.py without the `uv run` prefix :)