# Parse database configuration from $DATABASE_URL import dj_database_url # DATABASES['default'] = dj_database_url.config() #updated DATABASES = {'default': dj_database_url.config(default='postgres://user:pass@localhost/dbname')}