Add database

This commit is contained in:
Andros Fenollosa
2020-11-15 11:13:39 +01:00
parent 75de13e7a2
commit e486ebd2d5
3 changed files with 32 additions and 11 deletions

View File

@ -70,7 +70,6 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'mi_web.wsgi.application'
# Database
@ -78,8 +77,12 @@ WSGI_APPLICATION = 'mi_web.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}