diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-06-18 23:17:08 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-06-18 23:17:08 +0200 |
commit | fbb4637a77dc5982b4e694dd31a0aa7d11cec17c (patch) | |
tree | 2b277a09a8dacff187211cacfad7da5b5a3dda9b /accounts/views.py | |
download | scout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.tar.gz scout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.zip |
initial commit
Diffstat (limited to 'accounts/views.py')
-rw-r--r-- | accounts/views.py | 10 |
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' |