From 314ef9fc17ddf22c792f3cdb52571933e533b5c5 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 31 Oct 2022 17:57:23 +0100 Subject: [PATCH] Fix invalid activation key --- src/charasheet/urls.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/charasheet/urls.py b/src/charasheet/urls.py index 77c6d7f..5c5f2a1 100644 --- a/src/charasheet/urls.py +++ b/src/charasheet/urls.py @@ -18,6 +18,7 @@ from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth import logout from django.urls import include, path +from django.views.generic import TemplateView from django_registration.backends.activation.views import RegistrationView from common.forms import RegistrationForm @@ -30,6 +31,13 @@ urlpatterns = [ RegistrationView.as_view(form_class=RegistrationForm), name="django_registration_register", ), + path( + "accounts/activate/complete/", + TemplateView.as_view( + template_name="django_registration/activation_complete.html" + ), + name="django_registration_activation_complete", + ), path( "accounts/activate//", ActivationView.as_view(),