title: Django - saving form to the built in database SQLite
body: <p>This is my first time using Django and I am very simply trying to save text to the database. I have created the table inputs in the database.</p>
  
  <p>I am getting the following error;</p>
  
  <p><a href="https://i.stack.imgur.com/n1jrj.png" rel="nofollow noreferrer">Error - Page not found (404)</a></p>
  
  <p>My code is as follows; </p>
  
  <p><strong>Models.py</strong></p>
  
  <pre><code>from django.db import models
  
  
  class Input(models.Model):
      waist = models.IntegerField(default=0)
      height = models.IntegerField(default=0)
  
  def __unicode__(self):
      return "{0} {1} {2}".format(
          self, self.waist, self.height)
  </code></pre>
  
  <p><strong>forms.py</strong> </p>
  
  <pre><code>class InputForm(forms.ModelForm):
  class Meta:
      model = Input
      fields ={
      'waist',
      'height'
      }
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def InputView(request):
  if request.POST:
      form = InputForm(request.POST)
      if form.is_valid():
          form.save()
  
          return HttpResponseRedirect('account/input')
  else:
      form = InputForm()
  
  
      args = {'form' : form}
  
      return render(request,'accounts/input.html', args)
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>url(r'^input/$',views.InputView, name='view_input')
  </code></pre>
  
  <p><strong>input.html</strong></p>
  
  <pre><code>{% extends 'base.html' %}
  
  
  {% block head %}
  
  &lt;title&gt; Edit Profile &lt;/title&gt;
  {% endblock %}
  
  {% block body %}
  &lt;div class="container"&gt;
      &lt;h1&gt; Enter Body Details &lt;/h1&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;form action="account/input" method="post"&gt;
        {% csrf_token %}
        &lt;ul&gt;
        {{form.as_ul}}
        &lt;/ul&gt;
        &lt;input type="Submit" name="submit" value="submit"/&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>If any one can help it would be greatly appreciated. </p>