title: How to render in template in Django?
body: <p>I am trying to display my data on the HTML file but I am unable to display, I have a <code>function</code> in <code>views.py</code> file and i render this function data on my HTML file, but it's not going to the HTML path, please let me know how I can display data in Django default template.</p>
  <p>Here is my app <code>appname</code> and its have a <code>views.py</code> file and this file has a function that displays my data on the HTML page...
  please have a look at the <code>views.py</code> file...</p>
  <pre><code>def mydata():
     var1=Mymodel.objects.all()
     template_name='../templates/admin/appname/modelname/change_list.html'
     context={'var1':var1}
     return render(request, template_name, context)
  </code></pre>
  <p>Note: this template folder is that which Django provides in default, it's not available inside my app (<code>appname</code>), it's available outside of my app</p>
  <p>so main issue is in thsi path <code>template_name='../templates/admin/appname/modelname/change_list.html'</code>, because it's getting the correct path</p>