Skip to content

Commit

Permalink
Merge pull request #8 from R-Mielamud/dev
Browse files Browse the repository at this point in the history
Fixed databases
  • Loading branch information
R-Mielamud authored Jan 23, 2021
2 parents 07c5fb1 + 123649d commit 9d7bdb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Nicolaus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases

if DEBUG:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
else:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgres_psycopg2",
Expand All @@ -94,13 +101,6 @@
"PORT": "5432",
},
}
else:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}


# Password validation
Expand Down

0 comments on commit 9d7bdb6

Please sign in to comment.