on essaye de faire marcher l'email sur le serveur

This commit is contained in:
Jean-Marie Favreau 2023-11-15 19:54:53 +01:00
parent eeef839c4f
commit d3cd660fc1
2 changed files with 11 additions and 0 deletions
src/agenda_culturel

View File

@ -5,6 +5,7 @@ from django_better_admin_arrayfield.admin.mixins import DynamicArrayMixin
from django_better_admin_arrayfield.forms.widgets import DynamicArrayWidget
from django_better_admin_arrayfield.models.fields import DynamicArrayField
admin.site.register(EventSubmissionForm)
admin.site.register(Category)
admin.site.register(StaticContent)

View File

@ -177,3 +177,13 @@ CELERY_RESULT_BACKEND = REDIS_URL
COMPRESS_PRECOMPILERS = (
('text/x-scss', 'django_libsass.SassCompiler'),
)
# EMAIL settings
if os_getenv("EMAIL_BACKEND"):
EMAIL_BACKEND = os_getenv("EMAIL_BACKEND")
EMAIL_HOST = os_getenv("EMAIL_HOST")
EMAIL_PORT = os_getenv("EMAIL_PORT")
EMAIL_HOST_USER = os_getenv("EMAIL_HOST_USER")
EMAIL_HOST_PASSWORD = os_getenv("EMAIL_HOST_PASSWORD")