aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/views.py')
-rw-r--r--accounts/views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/accounts/views.py b/accounts/views.py
new file mode 100644
index 0000000..0483fad
--- /dev/null
+++ b/accounts/views.py
@@ -0,0 +1,10 @@
+from django.shortcuts import render
+from django.contrib.auth.forms import UserCreationForm
+from django.urls import reverse_lazy
+from django.views import generic
+
+
+class SignUp(generic.CreateView):
+ form_class = UserCreationForm
+ success_url = reverse_lazy('login')
+ template_name = 'accounts/signup.html'