Update common.py postgres connection string

By removing localhost we enable the default use of Unix sockets.
This commit is contained in:
Ger Schinkel 2015-05-07 15:22:28 +02:00
parent 894b72646a
commit f45698af3e

View File

@ -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