Signup View

Report a typo

Create MySignupView class and inherit it from CreateView.

The attribute of the class should satisfy the following conditions:

  • it uses the UserCreationForm
  • after successful registration, the user should be redirected to /home URL
  • the name of the template it uses is signup.html
Write a program in Python 3
from django.contrib.auth.forms import UserCreationForm
from django.views.generic import CreateView


class MySignupView:
...
___

Create a free account to access the full topic