Skip to content
Snippets Groups Projects
Commit b588cf20 authored by Marco Ciotola's avatar Marco Ciotola Committed by Ben Adida
Browse files

[db] db variables in settings and dj_database_url/psycopg2 upgrades

parent bcc429d6
No related branches found
No related tags found
No related merge requests found
Django==1.11.28
celery==4.2.1
django-picklefield==1.1.0
dj_database_url==0.5.0
psycopg2==2.8.4
html5lib==0.999
psycopg2==2.8.3
python-dateutil>=1.5
python3-openid==3.0.10
gunicorn==19.9
requests==2.21.0
unicodecsv==0.14.1
dj_database_url==0.3.0
django_webtest>=1.9
webtest==2.0.18
bleach==3.1.1
boto==2.49.0
django-ses==0.8.10
......@@ -18,3 +19,6 @@ py3-validate-email==0.1.11
oauth2client==4.1.3
rollbar==0.12.1
pycryptodome==3.8.2
django_webtest>=1.9
webtest==2.0.18
......@@ -38,19 +38,17 @@ SHOW_USER_INFO = (get_from_env('SHOW_USER_INFO', '1') == '1')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'helios'
'NAME': 'helios',
'CONN_MAX_AGE': 600,
},
}
# override if we have an env variable
if get_from_env('DATABASE_URL', None):
import dj_database_url
DATABASES['default'] = dj_database_url.config()
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
DATABASES['default']['CONN_MAX_AGE'] = '600'
# require SSL
DATABASES['default']['OPTIONS'] = {'sslmode': 'require'}
DATABASES['default'] = dj_database_url.config(conn_max_age=600, ssl_require=True)
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment