Changes between Initial Version and Version 1 of Ticket #32292


Ignore:
Timestamp:
Dec 21, 2020, 1:44:58 PM (3 years ago)
Author:
levihb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32292 – Description

    initial v1  
    1717At the moment it can be added like this:
    1818
    19 ```
     19{{{#!python
    2020DATABASES = {
    2121    'default': {
     
    2525    }
    2626}
    27 ```
     27}}}
    2828
    2929Which works, however it involves repeating the database name. I don't think the database name should be repeated twice because it couples the config and the service file together, and makes it harder to just move it between different environments. I think ideally you would just specify the service, either like this:
    3030
    31 ```
     31{{{#!python
    3232DATABASES = {
    3333    'default': {
     
    3636    }
    3737}
    38 ```
     38}}}
    3939
    4040Or maybe a better way would be?:
    4141
    42 ```
     42{{{#!python
    4343DATABASES = {
    4444    'default': {
     
    4747    }
    4848}
    49 ```
     49}}}
    5050
    5151It seems like something that would be super easy to add. I don't mind creating a pull request for it, but would like  to know why it hasn't been added, and how it would be recommended to add it.
Back to Top