mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 05:30:16 +03:00
Merge a284b08aec
into a5129ecbe4
This commit is contained in:
commit
784880a868
|
@ -109,7 +109,15 @@ MANAGERS = ADMINS
|
|||
# ------------------------------------------------------------------------------
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
||||
DATABASES = {
|
||||
'default': env.db('DATABASE_URL', default='postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}'),
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': '{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}',
|
||||
'USER': env.db('POSTGRES_USER', default=''),
|
||||
'PASSWORD': env.db('POSTGRES_PASSWORD', default=''),
|
||||
'HOST': 'localhost',
|
||||
'PORT': '',
|
||||
'CONN_MAX_AGE': 0
|
||||
}
|
||||
}
|
||||
DATABASES['default']['ATOMIC_REQUESTS'] = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user