title: form is not getting rendered in django
body: <p>the model class is :</p>
  
  <pre><code>class Product(models.Model):
     name=models.CharField(max_length=120)
     address=models.CharField(max_length=120)
     trek=models.CharField(max_length=120)
     transid=models.CharField(max_length=20 ,default="")
  </code></pre>
  
  <p>the form class is</p>
  
  <pre><code>class formm(forms.ModelForm):
  class Meta:
      model=Product
      fields=('name','address','trek','transid')
      #fields="__all__"
      # exclude=['title']
  </code></pre>
  
  <p>the form part of html is</p>
  
  <pre><code>&lt;div class="jumbotron"&gt;
  
  &lt;form method="post"&gt;
  {% csrf_token %}
  
  
  
    {{ form.as_p }}
  
  
  
     &lt;input class="btn btn-primary" type="submit" value="SUBMIT"/&gt;
  
     &lt;/form&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>the function in view is</p>
  
  <pre><code>def book(request):
  
      form=formm()
      if request.method == 'POST':
          form = formm(request.POST)
          if form.is_valid():
  
             form.save()
             return redirect('/')
  
          else:
                form=formm()
  
      return render(request, 'trek/contact.html', {'form': form})
  
  </code></pre>
  
  <p>the html rendered is:</p>
  
  <pre><code>  &lt;!DOCTYPE html&gt;
    &lt;html lang="en"&gt;
  &lt;head&gt;
   &lt;body&gt;
   &lt;div class="container"&gt;
  
   &lt;form method="post"&gt;
   {% csrf_token %}
    {{ form.as_p }}
    &lt;input class="btn btn-primary" type="submit" value="SUBMIT"/&gt;
  
    &lt;/form&gt;
     &lt;/div&gt;
    &lt;/body&gt;
    &lt;/head&gt;
  
    &lt;/html&gt;
  </code></pre>
  
  <p>The form is not getting rendered .Only the submit button is getting shown.
   there are no identation errors.</p>
  
  <p>all the imports are done properly.I have done this type of stuff before also but this never occured.</p>