Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
This is why Python 3 has a bad rap.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksergeant committed Sep 18, 2017
1 parent 1217e7d commit db226eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions settings.py
@@ -1,6 +1,7 @@
from urllib.parse import urlparse

import dj_database_url
import os
import urllib


if 'DATABASE_URL' in os.environ:
Expand All @@ -11,7 +12,7 @@

url = os.environ.get('SEARCHBOX_SSL_URL')

es = urllib.parse(url)
es = urlparse(url)

HAYSTACK_CONNECTIONS = {
'default': {
Expand Down

0 comments on commit db226eb

Please sign in to comment.