Browse Source

Fix sslmode with custom SQLite DATABASE_URL

pull/189/head
Clemens Wolff 5 years ago
parent
commit
6f2dd0cb72
1 changed files with 4 additions and 0 deletions
  1. 4
      app/app/settings.py

4
app/app/settings.py

@ -220,3 +220,7 @@ APPLICATION_INSIGHTS = {
}
django_heroku.settings(locals(), test_runner=False)
# work-around for dj-database-url: explicitly disable ssl for sqlite
if DATABASES['default'].get('ENGINE') == 'django.db.backends.sqlite3':
DATABASES['default'].get('OPTIONS', {}).pop('sslmode', None)
Loading…
Cancel
Save