forked from 00dani/lemoncurry
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_agent_trust',
|
||||||
'django_extensions',
|
'django_extensions',
|
||||||
'django_otp',
|
'django_otp',
|
||||||
|
'django_otp.plugins.otp_static',
|
||||||
'django_otp.plugins.otp_totp',
|
'django_otp.plugins.otp_totp',
|
||||||
'django_rq',
|
'django_rq',
|
||||||
'favicon',
|
'favicon',
|
||||||
|
@ -160,8 +161,8 @@ CACHES = {
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
'NAME': path.join(BASE_DIR, 'db.sqlite3'),
|
'NAME': 'lemoncurry'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,8 @@ DEBUG = False
|
||||||
SECRET_KEY = environ['DJANGO_SECRET_KEY']
|
SECRET_KEY = environ['DJANGO_SECRET_KEY']
|
||||||
SERVER_EMAIL = 'lemoncurry@00dani.me'
|
SERVER_EMAIL = 'lemoncurry@00dani.me'
|
||||||
|
|
||||||
# Use Postgres instead of SQLite in production.
|
# Authenticate as an app-specific Postgres user in production.
|
||||||
DATABASES['default'] = {
|
DATABASES['default']['USER'] = 'lemoncurry'
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
|
||||||
'NAME': 'lemoncurry',
|
|
||||||
'USER': 'lemoncurry',
|
|
||||||
}
|
|
||||||
|
|
||||||
SHORT_BASE_URL = 'https://nya.as/'
|
SHORT_BASE_URL = 'https://nya.as/'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue