DB_DB_NAME -> DB_NAME
This commit is contained in:
parent
15632b3b47
commit
ebe2f4b039
|
@ -95,7 +95,7 @@ Django
|
||||||
|
|
||||||
Database ([docs](https://docs.djangoproject.com/en/dev/ref/settings/#databases))
|
Database ([docs](https://docs.djangoproject.com/en/dev/ref/settings/#databases))
|
||||||
* `DB_ENGINE`: **django.db.backends.sqlite3**.
|
* `DB_ENGINE`: **django.db.backends.sqlite3**.
|
||||||
* `DB_DB_NAME`: **db.sqlite3**.
|
* `DB_NAME`: **db.sqlite3**.
|
||||||
* `DB_HOSTNAME`: **localhost**.
|
* `DB_HOSTNAME`: **localhost**.
|
||||||
* `DB_PORT`: **5432**.
|
* `DB_PORT`: **5432**.
|
||||||
* `DB_USERNAME`: **root**.
|
* `DB_USERNAME`: **root**.
|
||||||
|
|
|
@ -81,7 +81,7 @@ TEMPLATES = [
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
"default": {
|
"default": {
|
||||||
"ENGINE": os.getenv("DB_ENGINE", "django.db.backends.sqlite3"),
|
"ENGINE": os.getenv("DB_ENGINE", "django.db.backends.sqlite3"),
|
||||||
"NAME": os.getenv("DB_DB_NAME", "db.sqlite3"),
|
"NAME": os.getenv("DB_NAME", "db.sqlite3"),
|
||||||
"USER": os.getenv("DB_USERNAME", "root"),
|
"USER": os.getenv("DB_USERNAME", "root"),
|
||||||
"PASSWORD": os.getenv("DB_PASSWORD", "root"),
|
"PASSWORD": os.getenv("DB_PASSWORD", "root"),
|
||||||
"HOST": os.getenv("DB_HOSTNAME", "localhost"),
|
"HOST": os.getenv("DB_HOSTNAME", "localhost"),
|
||||||
|
|
Loading…
Reference in a new issue