diff --git a/contrib/env-sample b/contrib/env-sample index 0de37765..420e77f2 100644 --- a/contrib/env-sample +++ b/contrib/env-sample @@ -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= \ No newline at end of file +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 diff --git a/pypro/base/templates/registration/password_reset_form.html b/pypro/base/templates/registration/password_reset_form.html index 685aedb3..e2a549e9 100644 --- a/pypro/base/templates/registration/password_reset_form.html +++ b/pypro/base/templates/registration/password_reset_form.html @@ -1,7 +1,6 @@ {% extends 'base/base.html' %} {% load i18n static %} - {% block title %}Formulário de Recuperação de Senha{% endblock %} {% block body %} @@ -10,7 +9,6 @@

{{ title }}

{% trans 'Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.' %}

-
{% csrf_token %}
@@ -24,5 +22,4 @@

{{ title }}

- {% endblock %} diff --git a/pypro/settings.py b/pypro/settings.py index 28448db2..4dcfc28d 100644 --- a/pypro/settings.py +++ b/pypro/settings.py @@ -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')