Tell django to use MB4
This commit is contained in:
parent
a880bc27fb
commit
cb51a2abd8
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ else:
|
||||||
|
|
||||||
DATABASES = {}
|
DATABASES = {}
|
||||||
DATABASES['default'] = dj_database_url.config(conn_max_age=600)
|
DATABASES['default'] = dj_database_url.config(conn_max_age=600)
|
||||||
|
if DATABASES['default']['ENGINE'] == 'django.db.backends.mysql':
|
||||||
|
DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'}
|
||||||
|
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||||
EMAIL_HOST = os.environ.get('EMAIL_HOST', None)
|
EMAIL_HOST = os.environ.get('EMAIL_HOST', None)
|
||||||
|
|
Loading…
Reference in a new issue