DB_DB_NAME -> DB_NAME

This commit is contained in:
Casper V. Kristensen 2022-08-13 16:29:49 +02:00
parent 15632b3b47
commit ebe2f4b039
2 changed files with 2 additions and 2 deletions

View file

@ -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**.

View file

@ -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"),