Skip to content

Commit

Permalink
Configurados parâmetros de envio de email
Browse files Browse the repository at this point in the history
parte de #1070
  • Loading branch information
renzon committed Jun 22, 2020
1 parent 602862b commit 93a080c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
12 changes: 11 additions & 1 deletion contrib/env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@ DEBUG=False
SECRET_KEY=defina sua chave secreta
ALLOWED_HOSTS=localhost, 127.0.0.1
DATABASE_URL=postgres://postgres:postgres@localhost/testdb

# Configurações do AWS
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_STORAGE_BUCKET_NAME=
INTERNAL_IPS=127.0.0.1
SENTRY_DSN=
SENTRY_DSN=

# Configurações de Email

EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
EMAIL_HOST=localhost
EMAIL_PORT=25
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=True
3 changes: 0 additions & 3 deletions pypro/base/templates/registration/password_reset_form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends 'base/base.html' %}
{% load i18n static %}


{% block title %}Formulário de Recuperação de Senha{% endblock %}

{% block body %}
Expand All @@ -10,7 +9,6 @@
<div class="col">
<h1>{{ title }}</h1>
<p>{% trans 'Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.' %}</p>

<form method="post">{% csrf_token %}
<fieldset class="module aligned">
<div class="form-row field-email">
Expand All @@ -24,5 +22,4 @@ <h1>{{ title }}</h1>
</div>
</div>
</div>

{% endblock %}
10 changes: 10 additions & 0 deletions pypro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@

WSGI_APPLICATION = 'pypro.wsgi.application'

# Configuração de envio de Email

EMAIL_BACKEND = config('EMAIL_BACKEND')
EMAIL_HOST = config('EMAIL_HOST')
EMAIL_PORT = config('EMAIL_PORT')
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = config('EMAIL_USE_TLS')


# Configuração Django Debug Tollbar

INTERNAL_IPS = config('INTERNAL_IPS', cast=Csv(), default='127.0.0.1')
Expand Down

0 comments on commit 93a080c

Please sign in to comment.