Profile UpdateView (Default)
Profile Update View Form After Sign Up in Django
As we have made a signup module, so it is obvious we are going to need a profile update module. For Profile Update Functionality, we are going to use generic UpdateView. These are the in-built class-based views that make our code DRY. We are going to use the User Model which we have used above.
forms.py
from django import forms
from django.contrib.auth.models import User
# Profile Form
class ProfileForm(forms.ModelForm):
class Meta:
model = User
fields = [
'username',
'first_name',
'last_name',
'email',
]views.py
urls.py
profile.html

Last updated