Skip to content
Snippets Groups Projects
Commit 5cb46f7c authored by Evili del Rio i Silvan's avatar Evili del Rio i Silvan
Browse files

Only change sslmode when defined

parent f475c67b
No related branches found
No related tags found
1 merge request!5Heroku
......@@ -135,4 +135,7 @@ import django_heroku
django_heroku.settings(locals())
# REMOVE SSL FOR TESTING
if DEBUG:
DATABASES['default']['OPTIONS']['sslmode'] = 'prefer'
try:
DATABASES['default']['OPTIONS']['sslmode'] = 'prefer'
except Error:
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment