Fix invalid activation key

This commit is contained in:
Gabriel Augendre 2022-10-31 17:57:23 +01:00
parent 23e166451e
commit 314ef9fc17

View file

@ -18,6 +18,7 @@ from django.conf.urls.static import static
from django.contrib import admin from django.contrib import admin
from django.contrib.auth import logout from django.contrib.auth import logout
from django.urls import include, path from django.urls import include, path
from django.views.generic import TemplateView
from django_registration.backends.activation.views import RegistrationView from django_registration.backends.activation.views import RegistrationView
from common.forms import RegistrationForm from common.forms import RegistrationForm
@ -30,6 +31,13 @@ urlpatterns = [
RegistrationView.as_view(form_class=RegistrationForm), RegistrationView.as_view(form_class=RegistrationForm),
name="django_registration_register", name="django_registration_register",
), ),
path(
"accounts/activate/complete/",
TemplateView.as_view(
template_name="django_registration/activation_complete.html"
),
name="django_registration_activation_complete",
),
path( path(
"accounts/activate/<str:activation_key>/", "accounts/activate/<str:activation_key>/",
ActivationView.as_view(), ActivationView.as_view(),