django-dotenv
django-dotenv copied to clipboard
Can't use with pytest-django and pytest-dotenv
Hi! I am using pytest-dotenv, but it installs python-doenv by default and can't work without it. So, I have error when run django AttributeError: module 'dotenv' has no attribute 'read_dotenv'. Did you mean: 'load_dotenv'?. When run tests, all is fine.
What could you offer to prevent it?
see https://github.com/jpadilla/django-dotenv/issues/50
this module should be renamed to django_dotenv.
You can still alias this for your own backwards compatibility
>>> import django_dotenv as dotenv