mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Fix invalid activation key
This commit is contained in:
parent
23e166451e
commit
314ef9fc17
1 changed files with 8 additions and 0 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue