Add new input field to Django form
I am working on a signup form within a Django project. I have the following:
<div class="form-row">
<div class="col-md-6">
<div class="form-group">
<label class="large mb-1">First Name</label>
{{ form.first_name }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="large mb-1">Last Name</label>
{{ form.last_name }}
</div>
</div>
</div>
At this point I would like to add another input, e.g. phone number. So I was trying a wild guess such as:
<div class="form-group">
<label class="large mb-1">Phone</label>
{{ form.phone }}
</div>
But obviously it doesn't work. Any suggestion?
Thank you!