diff --git a/gcmk_library/settings.py b/gcmk_library/settings.py index cd51942..8c626b8 100644 --- a/gcmk_library/settings.py +++ b/gcmk_library/settings.py @@ -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', @@ -159,7 +158,6 @@ ('django_filters.rest_framework.DjangoFilterBackend',), } - import os LOGGING = { @@ -176,4 +174,7 @@ 'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'), }, }, -} \ No newline at end of file +} + +EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend" +EMAIL_FILE_PATH = os.path.join(BASE_DIR, "sent_emails") diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..378e7cf --- /dev/null +++ b/templates/registration/password_reset_complete.html @@ -0,0 +1,5 @@ +{% extends 'base_generic.html' %} + +{% block content %} +

Your new password has been set. You can log in now on the log in page.

+{% endblock %} \ No newline at end of file diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..6d3ad76 --- /dev/null +++ b/templates/registration/password_reset_confirm.html @@ -0,0 +1,9 @@ +{% extends 'base_generic.html' %} + +{% block content %} +
+ {% csrf_token %} + {{ form.as_p }} + +
+{% endblock %} \ No newline at end of file diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html new file mode 100644 index 0000000..67c7de3 --- /dev/null +++ b/templates/registration/password_reset_done.html @@ -0,0 +1,5 @@ +{% extends 'base_generic.html' %} + +{% block content %} +

We've emailed you instructions for setting your password. You should receive the email shortly!

+{% endblock %} \ No newline at end of file diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html new file mode 100644 index 0000000..441d1e2 --- /dev/null +++ b/templates/registration/password_reset_form.html @@ -0,0 +1,12 @@ +{% extends 'base_generic.html' %} + +{% block content %} +

Forgot your password?

+

Enter your email address below, and we'll email instructions for setting a new one.

+ +
+ {% csrf_token %} + {{ form.as_p }} + +
+{% endblock %} \ No newline at end of file