From 1edb7e69cb3d1f8980745e3e2fa94c5b757e2c2a Mon Sep 17 00:00:00 2001 From: Charlie Smith Date: Sat, 30 Sep 2017 12:56:08 +0100 Subject: [PATCH] More inline docs for DATABASES variable Use of database url is not part of Django, but comes from django-environ. Was initially confusing where feature came from, as link points to offical django docs. --- {{cookiecutter.project_slug}}/config/settings/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/{{cookiecutter.project_slug}}/config/settings/base.py b/{{cookiecutter.project_slug}}/config/settings/base.py index 274e28067..10261781d 100644 --- a/{{cookiecutter.project_slug}}/config/settings/base.py +++ b/{{cookiecutter.project_slug}}/config/settings/base.py @@ -108,6 +108,8 @@ MANAGERS = ADMINS # DATABASE CONFIGURATION # ------------------------------------------------------------------------------ # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases +# Uses django-environ to accept uri format +# See: https://django-environ.readthedocs.io/en/latest/#supported-types DATABASES = { 'default': env.db('DATABASE_URL', default='postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}'), }