django-dotenv icon indicating copy to clipboard operation
django-dotenv copied to clipboard

Breaks python-dotenv

Open stuaxo opened this issue 3 years ago • 3 comments

This package interferes with python-dotenv.

if you have a project that uses python-dotenv, but have already installed this it will break.

This is because this project uses "dotenv.py" in the root folder of site-packages, but the other tool uses a package.

Suggestion: move the file into it's own package, e.g. django_dotenv and consider renaming it.

stuaxo avatar May 18 '22 10:05 stuaxo

A lof of django-packages make this diabolical mistake. Diabolical because just pip-installing such a package will actually erase the source-code of another package, and pip will not even complain.

When you have a python-project named "foo-something", "foo-something" is unique on pypi, the associated import-modulename is "foo_something" is then also unique.

Python-dotenv as a package makes actually the same mistake.

  • https://pypi.org/project/dotenv/
  • https://pypi.org/project/django-dotenv/
  • https://pypi.org/project/python-dotenv/

woutervh avatar Jun 02 '23 23:06 woutervh

Yep, python-dotenv Vs dotenv is a big one. I think python-dotenv is the more recent / supported of those two, but I've hit it a lot.

stuaxo avatar Jun 03 '23 00:06 stuaxo

see also https://forum.djangoproject.com/t/change-reusable-apps-naming-recommendation/25233

woutervh avatar Nov 12 '23 15:11 woutervh