Load .env from the current directory

This commit is contained in:
Andrey Golovizin 2020-03-10 22:03:09 +01:00
parent 5ad8f83ae8
commit e85d151c2d

View file

@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/2.2/ref/settings/
import os # isort:skip
import dotenv
dotenv.load_dotenv()
dotenv.load_dotenv(dotenv.find_dotenv(usecwd=True))
gettext = lambda s: s