On my homepage, I have both a log_in
and sign_up
form. Initially, the log_in
form is displayed by default, but when a user clicks on the Sign Up button, the sign_up
form appears. These toggles switch depending on which button the user clicks.
from django import forms
class LogInForm(forms.Form):
pass
class SignUpForm(forms.Form):
pass
Both forms call the same view - index_view()
.