Skip to content

Commit c0440a5

Browse files
author
Pbezerra-dev
committed
add email config
1 parent f4b24f7 commit c0440a5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

contrib/env_sample

+9
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ SECRET_KEY=defina_sua_chave_aqui
33
ALLOWED_HOSTS=localhost, 127.0.0.1
44
INTERNAL_IPS=127.0.0.1
55
DATABASE_URL:postgres://postgres:postgres@localhost/postgres
6+
67
# Configurações AWS
78
AWS_ACCESS_KEY_ID=
89
AWS_SECRET_ACCESS_KEY=
910
AWS_STORAGE_BUCKET_NAME=
1011
SENTRY_DSN=
12+
13+
# Configurações de Email
14+
EMAIL_BACKEND='django.core.mail.backends.console.EmailBackend'
15+
EMAIL_HOST=localhost
16+
EMAIL_PORT=25
17+
EMAIL_HOST_USER=
18+
EMAIL_HOST_PASSWORD=
19+
MAIL_USE_TLS=True

pypro/settings.py

+8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@
129129
LOGIN_REDIRECT_URL = reverse_lazy('modulos:indice')
130130
LOGOUT_REDIRECT_URL = reverse_lazy('core:home')
131131

132+
# Configs Email
133+
EMAIL_BACKEND = config('EMAIL_BACKEND')
134+
EMAIL_HOST = config('EMAIL_HOST')
135+
EMAIL_PORT = config('EMAIL_PORT')
136+
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
137+
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')
138+
MAIL_USE_TLS = config('MAIL_USE_TLS')
139+
132140
# Debug toolbar configuration
133141
if DEBUG:
134142
INSTALLED_APPS.append('debug_toolbar')

0 commit comments

Comments
 (0)