mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-11 06:03:09 +00:00
Merge pull request #233 from schinkelg/master
Update common.py postgres connection string
This commit is contained in:
commit
de08741305
2 changed files with 3 additions and 2 deletions
|
|
@ -9,5 +9,6 @@
|
|||
"timezone": "UTC",
|
||||
"now": "2015/01/13",
|
||||
"year": "{{ cookiecutter.now[:4] }}",
|
||||
"use_whitenoise": "y"
|
||||
"use_whitenoise": "y",
|
||||
"windows": "n"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,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://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.repo_name}}"),
|
||||
}
|
||||
DATABASES['default']['ATOMIC_REQUESTS'] = True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue