#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import absolute_import, print_function, unicode_literals

import os
import dj_database_url

try:
    DATABASES = {
       'default': {
           'ENGINE': 'django.db.backends.postgresql_psycopg2',
           'NAME': 'postgres',                      
           'USER': 'postgres',
           'PASSWORD': os.environ['DB_ENV_POSTGRES_PASSWORD'],
           'HOST': 'db',                      
        }
    }
except:
    DATABASES = {'default': dj_database_url.config()}


@@ -51,92 +51,8 @@
 %22%22%22%0A
-from __future__ import absolute_import, print_function, unicode_literals%0A%0Aimport os%0A
 impo
@@ -75,17 +75,8 @@
 rl%0A%0A
-try:%0A    
 DATA
@@ -93,322 +93,8 @@
     
-   'default': %7B%0A           'ENGINE': 'django.db.backends.postgresql_psycopg2',%0A           'NAME': 'postgres',                      %0A           'USER': 'postgres',%0A           'PASSWORD': os.environ%5B'DB_ENV_POSTGRES_PASSWORD'%5D,%0A           'HOST': 'db',                      %0A        %7D%0A    %7D%0Aexcept:%0A    DATABASES = %7B
 'def
@@ -128,7 +128,8 @@
 ig()
+,%0A
 %7D%0A
-%0A

remove hardcoding for postgres