From 8d02940b1f09f6387d0998305442ac73d7417500 Mon Sep 17 00:00:00 2001 From: japrogramer Date: Tue, 25 Jul 2017 16:30:59 -0500 Subject: [PATCH] retab --- {{cookiecutter.project_slug}}/compose/django/entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/django/entrypoint.py b/{{cookiecutter.project_slug}}/compose/django/entrypoint.py index 4c3147452..2eeab5da0 100644 --- a/{{cookiecutter.project_slug}}/compose/django/entrypoint.py +++ b/{{cookiecutter.project_slug}}/compose/django/entrypoint.py @@ -28,13 +28,13 @@ def pingpost(): """ try: - if os.environ['POSTGRES_USER']: + if os.environ['POSTGRES_USER']: pg_user = os.environ['POSTGRES_USER'] else: os.environ['POSTGRES_USER'] = pg_user = 'postgres' pg_pass = os.environ['POSTGRES_PASSWORD'] - DATABASE_URL='postgres://{username}:{password}@postgres:5432/{username}' + DATABASE_URL='postgres://{username}:{password}@postgres:5432/{username}' DATABASE_URL = DATABASE_URL.format(username=pg_user, password=pg_pass), os.environ['DATABASE_URL'] = DATABASE_URL