mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-14 01:52:26 +03:00
Update common.py postgres connection string
By removing localhost we enable the default use of Unix sockets.
This commit is contained in:
parent
894b72646a
commit
f45698af3e
|
@ -102,7 +102,7 @@ MANAGERS = ADMINS
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
# Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ
|
# 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
|
DATABASES['default']['ATOMIC_REQUESTS'] = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user