aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/views.py
blob: 0483fad0afd0076c38f58d98c1eaf72ebb383b4f (plain)
1
2
3
4
5
6
7
8
9
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'