Browse Source

This is why Python 3 has a bad rap.

master
Nick Sergeant 4 years ago
parent
commit
db226eb511
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      settings.py

+ 3
- 2
settings.py View File

@@ -1,6 +1,7 @@
from urllib.parse import urlparse

import dj_database_url
import os
import urllib


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

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

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

HAYSTACK_CONNECTIONS = {
'default': {


Loading…
Cancel
Save