Skip to content

Commit 351562b

Browse files
laymonagethibaudcolas
authored andcommitted
Replace django-dotenv with python-dotenv
1 parent 5b36529 commit 351562b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bakerydemo/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import dotenv
1313
from django.core.wsgi import get_wsgi_application
1414

15-
dotenv.read_dotenv(os.path.join(os.path.dirname(os.path.dirname(__file__)), ".env"))
15+
dotenv.load_dotenv()
1616

1717
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bakerydemo.settings.dev")
1818

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import dotenv
66

77
if __name__ == "__main__":
8-
dotenv.read_dotenv()
8+
dotenv.load_dotenv()
99

1010
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bakerydemo.settings.dev")
1111

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Make a pull request to https://github.com/wagtail/bakerydemo
195195

196196
The `bakerydemo/settings/local.py` file can be used to store local Django settings such as database connection details that need to be kept outside of version control.
197197

198-
Additionally, various settings can be controlled through environment variables. The [django-dotenv](https://github.com/jpadilla/django-dotenv) package is used to load these variables from a `.env` file in the project root.
198+
Additionally, various settings can be controlled through environment variables. The [python-dotenv](https://github.com/theskumar/python-dotenv) package is used to load these variables from a `.env` file in the project root.
199199

200200
### Note on demo search
201201

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Django>=6.0,<6.1
2-
django-dotenv==1.4.2
2+
python-dotenv==1.2.1
33
wagtail>=7.2,<7.3
44
wagtail-font-awesome-svg>=1,<2
55
django-debug-toolbar>=4.2,<5

vagrant/provision.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ chmod a+x $PROJECT_DIR/manage.py
3636

3737
# copy local settings file
3838
cp $PROJECT_DIR/bakerydemo/settings/local.py.example $PROJECT_DIR/bakerydemo/settings/local.py
39-
# add .env file for django-dotenv environment variable definitions
39+
# add .env file for python-dotenv environment variable definitions
4040
echo DJANGO_SETTINGS_MODULE=$PROJECT_NAME.settings.dev > $PROJECT_DIR/.env
4141

4242
if [ -n "$USE_POSTGRESQL" ]

0 commit comments

Comments
 (0)