linking HTML form with database directly without ModelForm

9 views
Skip to first unread message

Fatukasi Kayode

unread,
May 28, 2019, 5:34:22 PM5/28/19
to Django users
fase.html
<form method="post">
    <label for="email">Email address:</label>
    <input type="email" class="form-control" id="email"> 
  
    <label for="phone">Phone: </label>
    <input type="text" class="form-control" id="pwd">
       
          <input type='submit' value='post' />
 
</form>

the models.py contains email and phone number also
Reply all
Reply to author
Forward
0 new messages