Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions gcmk_library/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)


# REST framework
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
Expand All @@ -159,7 +158,6 @@
('django_filters.rest_framework.DjangoFilterBackend',),
}


import os

LOGGING = {
Expand All @@ -176,4 +174,7 @@
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
},
}
}

EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
EMAIL_FILE_PATH = os.path.join(BASE_DIR, "sent_emails")
5 changes: 5 additions & 0 deletions templates/registration/password_reset_complete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends 'base_generic.html' %}

{% block content %}
<p>Your new password has been set. You can log in now on the <a href="{% url 'login' %}">log in page</a>.</p>
{% endblock %}
9 changes: 9 additions & 0 deletions templates/registration/password_reset_confirm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends 'base_generic.html' %}

{% block content %}
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Change my password">
</form>
{% endblock %}
5 changes: 5 additions & 0 deletions templates/registration/password_reset_done.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends 'base_generic.html' %}

{% block content %}
<p>We've emailed you instructions for setting your password. You should receive the email shortly!</p>
{% endblock %}
12 changes: 12 additions & 0 deletions templates/registration/password_reset_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends 'base_generic.html' %}

{% block content %}
<h1>Forgot your password?</h1>
<p>Enter your email address below, and we'll email instructions for setting a new one.</p>

<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Send me instructions!">
</form>
{% endblock %}