You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
439 B

from django.shortcuts import (
render, HttpResponse
)
from django.urls import reverse_lazy
from django.views import generic
from django.contrib.auth.forms import UserCreationForm
from . import forms
# Create your views here.
def index(request):
return render(request, 'index.html')
class SignUp(generic.CreateView):
form_class = forms.UserSignUpForm
success_url = reverse_lazy('login')
template_name = 'signup.html'