Switch the dev environment from SQLite to also use Postgres, so that Postgres-specific data types can be used
This commit is contained in:
parent
eb20cc1d21
commit
9fb2e8552f
2 changed files with 5 additions and 8 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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/'
|
||||
|
||||
|
|
Loading…
Reference in a new issue