File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1414import json
1515import dj_database_url
1616
17+ from dotenv import load_dotenv
18+
1719# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1820BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
1921
22+ load_dotenv (f"{ BASE_DIR } /.env" )
2023# Quick-start development settings - unsuitable for production
2124# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
2225
7679
7780# Database
7881# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
79-
82+ print ( os . environ . get ( 'DATABASE_URL' ))
8083DATABASES = {
8184 'default' : dj_database_url .parse (os .environ .get ('DATABASE_URL' ), conn_max_age = 600 )
8285}
Original file line number Diff line number Diff line change 1- asgiref == 3.2.10
1+ asgiref == 3.3.2
22certifi == 2020.6.20
33chardet == 3.0.4
4- dj-database-url == 0.5 .0
5- Django == 3.1.1
4+ dj-database-url == 1.2 .0
5+ Django == 3.2.0
66django-crispy-forms == 1.9.2
77django-heroku == 0.3.1
88gunicorn == 20.0.4
99idna == 2.10
10- Pillow == 7.2 .0
10+ Pillow == 9.4 .0
1111psycopg2 == 2.9.5
1212psycopg2-binary == 2.9.5
13+ python-dotenv == 0.21.1
1314pytz == 2020.1
1415requests == 2.24.0
1516sqlparse == 0.3.1
You can’t perform that action at this time.
0 commit comments