title: model forms were not generated automatically using django model forms
body: <p>I'm creating Django forms using model forms because u I wanted the forms to be created automatically, but when I created this code the forms do not appear in the index.html page</p>
  
  <p>models.py </p>
  
  <pre class="lang-py prettyprint-override"><code>from django.db import models
  
  
  class BaseCase(models.Model):
      base_case_name = models.CharField(primary_key=True, max_length=255)
      version = models.TextField(blank=True, null=True)
      default = models.TextField(blank=True, null=True)  # This field type is a guess.
  
      class Meta:
          managed = False
          db_table = 'base_case'
  </code></pre>
  
  <p>forms.py </p>
  
  <pre class="lang-py prettyprint-override"><code>from django import forms
  from SFP.models import *
  
  
  class BaseCaseForm(forms.ModelForm):
      class Meta :
          model = BaseCase
          fields='__all__'
  </code></pre>
  
  <p>views.py</p>
  
  <pre class="lang-py prettyprint-override"><code>from django.shortcuts import render,redirect
  from .models import *
  from .forms import *
  
  def addbc(self, request):
      bcform=BaseCaseForm(request.POST)
      bcform.save()
      basecasename = bcform.cleaned_data['post']
      version = bcform.cleaned_data['post']
      default = bcform.cleaned_data['post']
      bcform = BaseCaseForm()
      return redirect('index.html')
      args = {'bcform':bcform,
              'basecasename': basecasename,
              'version': version,
              'default' :default}
  
      return render(request, 'index.html', args)
  </code></pre>
  
  <p>index.html</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;S&amp;FP&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;Forms&lt;/h1&gt;
            {% csrf_token %}
            {{ bcform }}
         &lt;input type="submit" value="add"&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and i think that this is important too
  urls.py </p>
  
  <pre class="lang-py prettyprint-override"><code>from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^$', views.index),
      url(r'^$', views.addbc),
  ]
  </code></pre>
  
  <p>I was expecting the form fields to be generated automatically but they don't appear!</p>