Switch the dev environment from SQLite to also use Postgres, so that Postgres-specific data types can be used

This commit is contained in:
Danielle McLean 2018-05-10 14:20:09 +10:00
parent eb20cc1d21
commit 9fb2e8552f
Signed by: 00dani
GPG key ID: D111F8C5A2560F19
2 changed files with 5 additions and 8 deletions

View file

@ -86,6 +86,7 @@ INSTALLED_APPS = [
'django_agent_trust',
'django_extensions',
'django_otp',
'django_otp.plugins.otp_static',
'django_otp.plugins.otp_totp',
'django_rq',
'favicon',
@ -160,8 +161,8 @@ CACHES = {
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'lemoncurry'
}
}

View file

@ -9,12 +9,8 @@ DEBUG = False
SECRET_KEY = environ['DJANGO_SECRET_KEY']
SERVER_EMAIL = 'lemoncurry@00dani.me'
# Use Postgres instead of SQLite in production.
DATABASES['default'] = {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'lemoncurry',
'USER': 'lemoncurry',
}
# Authenticate as an app-specific Postgres user in production.
DATABASES['default']['USER'] = 'lemoncurry'
SHORT_BASE_URL = 'https://nya.as/'