Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why? #42

Open
eedwards-sk opened this issue Dec 17, 2019 · 6 comments
Open

Why? #42

eedwards-sk opened this issue Dec 17, 2019 · 6 comments

Comments

@eedwards-sk
Copy link

I looked at the source code for this project -- none of it appears to be django specific.

Why is it branded with django?

@woutervh
Copy link

I agree, but there is another project called python-dotenv, but I always use django-dotenv.

both packages import as a dotenv-module, so there is a naming conflict.
you cannot use both package in the same project

``

pip install python-dotenv
pip install django-dotenv

import dotenv # which one wins?
``

@Suor
Copy link

Suor commented Apr 14, 2020

I hit this conflict too, trying to use both this and pytest-dotenv.

@skorokithakis
Copy link

Same here, this should have been named something else.

@aprilahijriyan
Copy link

Yes, I agree, the package name must be changed so that there is no conflict with python-dotenv. Maybe a good name is django_dotenv ?

@WillowP
Copy link

WillowP commented Sep 20, 2021

I hit this conflict too, trying to use both this and pytest-dotenv.

Also hit this. I tried to fix it using pytest-django-dotenv, but they only support paths relative to the VIRTUAL_ENV environment var. I'm using pyenv so that doesn't cut it.

FWIW my solution was to switch from using the pytest command to using python manage.py test, enabled by the solution described in the docs here. I just copy/pasted the solution in the docs and this started working :)

Btw I'm using pytest-django

@suspiciousRaccoon
Copy link

python-dotenv seems to work well enough for me. I use load_dotenv() in manage.py and I can access .env variables from settings. Does this project have any additional functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants