From f45698af3e55245397405baedc4be646b3315859 Mon Sep 17 00:00:00 2001 From: Ger Schinkel Date: Thu, 7 May 2015 15:22:28 +0200 Subject: [PATCH] Update common.py postgres connection string By removing localhost we enable the default use of Unix sockets. --- {{cookiecutter.repo_name}}/config/settings/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py index 6971dbd64..fe94c9912 100644 --- a/{{cookiecutter.repo_name}}/config/settings/common.py +++ b/{{cookiecutter.repo_name}}/config/settings/common.py @@ -102,7 +102,7 @@ MANAGERS = ADMINS # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases DATABASES = { # Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ - 'default': env.db("DATABASE_URL", default="postgres://localhost/{{cookiecutter.repo_name}}"), + 'default': env.db("DATABASE_URL", default="postgres:///{{cookiecutter.repo_name}}"), } DATABASES['default']['ATOMIC_REQUESTS'] = True