hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

Kevin Renskers

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: loopwerk.io/articles/2025/uv-k.

@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 :)