title: django can't find template when trying to use forms
body: <p>I am trying to follow the django documentation howto create a form using sjango form class. I am doing every step but when trying to access my form it says that is cannot find the template:</p>
  <pre><code>django.template.exceptions.TemplateDoesNotExist: lform
  </code></pre>
  <p>heres is my forms.py:</p>
  <pre><code>class LoginForm(Form):
      
      uname=CharField(label='user name',max_length=20)
      passw=CharField(label='password', max_length=20)
  </code></pre>
  <p>the template lform.html:</p>
  <pre><code>&lt;form action=&quot;ulogin&quot; method=&quot;post&quot;&gt;
      {% csrf_token %}
      {{ form }}
      &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p>and my view. I think the problem is in the render function:</p>
  <pre><code>def testform(request):
  
      if request.method=='POST':
          form=LoginForm(request.POST)
          
          if form_is_valid():
              return render('index')
          else:
              HttpResponseRedirect('index')
  
      else:
          form=LoginForm()
      
      return render(request,'lform',{'form':form})
  </code></pre>
  <p>and url.py:</p>
  <pre><code>path('lform',views.testform,name='lform')
  </code></pre>
  <p>the last line in the view function,</p>
  <pre><code>return render(request,'lform',{'form':form})
  </code></pre>
  <p>gives the error  any suggestions?</p>