mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-20 13:30:58 +03:00
More inline docs for DATABASES variable (#1350)
* 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. * Contributors update
This commit is contained in:
parent
1d2905eb6c
commit
cda6878486
|
@ -68,6 +68,7 @@ Listed in alphabetical order.
|
||||||
Burhan Khalid `@burhan`_ @burhan
|
Burhan Khalid `@burhan`_ @burhan
|
||||||
Catherine Devlin `@catherinedevlin`_
|
Catherine Devlin `@catherinedevlin`_
|
||||||
Cédric Gaspoz `@cgaspoz`_
|
Cédric Gaspoz `@cgaspoz`_
|
||||||
|
Charlie Smith `@chuckus`_
|
||||||
Chris Curvey `@ccurvey`_
|
Chris Curvey `@ccurvey`_
|
||||||
Chris Franklin
|
Chris Franklin
|
||||||
Chris Franklin `@hairychris`_
|
Chris Franklin `@hairychris`_
|
||||||
|
@ -179,6 +180,7 @@ Listed in alphabetical order.
|
||||||
.. _@cgaspoz: https://github.com/cgaspoz
|
.. _@cgaspoz: https://github.com/cgaspoz
|
||||||
.. _@chrisdev: https://github.com/chrisdev
|
.. _@chrisdev: https://github.com/chrisdev
|
||||||
.. _@ChrisPappalardo: https://github.com/ChrisPappalardo
|
.. _@ChrisPappalardo: https://github.com/ChrisPappalardo
|
||||||
|
.. _@chuckus: https://github.com/chuckus
|
||||||
.. _@Collederas: https://github.com/Collederas
|
.. _@Collederas: https://github.com/Collederas
|
||||||
.. _@ddiazpinto: https://github.com/ddiazpinto
|
.. _@ddiazpinto: https://github.com/ddiazpinto
|
||||||
.. _@dezoito: https://github.com/dezoito
|
.. _@dezoito: https://github.com/dezoito
|
||||||
|
|
|
@ -108,6 +108,8 @@ MANAGERS = ADMINS
|
||||||
# DATABASE CONFIGURATION
|
# DATABASE CONFIGURATION
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
# 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 = {
|
DATABASES = {
|
||||||
'default': env.db('DATABASE_URL', default='postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}'),
|
'default': env.db('DATABASE_URL', default='postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}'),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user