Add user signup form and implement signup view; enhance message display in templates
This commit is contained in:
parent
6ab5748cbc
commit
700ab7ecca
8 changed files with 66 additions and 2 deletions
11
base/forms.py
Normal file
11
base/forms.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from django import forms
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
class UserSignupForm(UserCreationForm):
|
||||
email = forms.EmailField()
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ["username", "email"]
|
Loading…
Add table
Add a link
Reference in a new issue