title: How to render field data into a template file using django?
body: <p>I am trying to render data into a template file using the following Code. The error I encounter is something like : </p>
  
  <pre><code>This page contains the following errors:
  error on line 13 at column 16: AttValue: " or ' expected
  
  Below is a rendering of the page up to the first error.
  Name,Author,Status
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code>def editbook(request):
      if request.method == 'GET':
          name = request.GET.get('name',False)
          Details = bookInfo.objects.all().filter(Name=name)
          id = Details.values_list('id',flat=True)
          Name = Details.values_list('Name',flat=True)
          Author = Details.values_list('Author',flat=True)
          Status = Details.values_list('Status',flat=True)
          return render(request, 'app/add.html', {'Name' : Name, 'Author' : Author, 'Status' : Status}, content_type="application/xhtml+xml")
  </code></pre>
  
  <p><strong>Template Code</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Add&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form action="add/" method="post"&gt;
          {% csrf_token %}
          &lt;p style="font-family:Courier New;color:teal"&gt;Name &lt;input type="text" placeholder="Name of the book" name="name"&gt;&lt;/input&gt;&lt;/p&gt;
  
          &lt;p style="font-family:Courier New;color:teal"&gt;Author &lt;input type="text" placeholder="Author of the book" name="author"&gt;&lt;/input&gt;&lt;/p&gt;
          &lt;p style="font-family:Courier New; color:teal"&gt; Status
          &lt;select name="status"&gt;
                  &lt;option value=1&gt;Read&lt;/option&gt;
                  &lt;option value=1&gt;Unread&lt;/option&gt;
          &lt;/select&gt;
          &lt;/p&gt;
          &lt;input type="submit" id="booksubmit" value="Add/Edit Book"&gt;&lt;/input&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I searched through Google and I found that this somewhat like XML parsing error (Please correct me if I am wrong). Now I am stuck at this position. Please help.</p>
  
  <p><strong>EDIT</strong> Here the form for adding the book has a different method for saving the field data into database.</p>