title: How to show the value of radio button from database to html template in Django?
body: <p>To show the value in the edit page, in case of a simple textbox, we can show the value stored in the database using <code>{{ data.note }}</code> where data is rendered from the views.py to HTML template.</p>
  <pre><code>&lt;div class=&quot;col-md-4 mb-3&quot;&gt;
      &lt;label&gt;Notes &lt;span class=&quot;red-color&quot;&gt;*&lt;/span&gt;&lt;/label&gt;
      &lt;input type=&quot;text&quot; name=&quot;important_note&quot; class=&quot;form-control&quot; id=&quot;important_note&quot; value=&quot;{{ data.note }}&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>If I want to do the same in case of the following group radio button, how can I show the selected value stored in the database table? (for example, Value B is stored in the database)</p>
  <pre><code>&lt;div class=&quot;col-md-4 mb-3&quot; id=&quot;list_id&quot;&gt;
      &lt;label&gt;Select List&lt;/label&gt;
      &lt;input type=&quot;radio&quot; name=&quot;list&quot; value =&quot;A&quot; id=&quot;A&quot;&gt; A &lt;br&gt;
      &lt;input type=&quot;radio&quot; name=&quot;list&quot; value=&quot;B&quot; id=&quot;B&quot;&gt; B &lt;br&gt;
      &lt;input type=&quot;radio&quot; name=&quot;list&quot; value=&quot;C&quot; id=&quot;C&quot;&gt; C &lt;br&gt;
      &lt;input type=&quot;radio&quot; name=&quot;list&quot; value=&quot;D&quot; id=&quot;D&quot;&gt; D &lt;br&gt;
      &lt;input type=&quot;radio&quot; name=&quot;list&quot; id=&quot;E&quot; value=&quot;E&quot;&gt; E
  &lt;/div&gt;
  </code></pre>
  <p>NOTE: I don't want to use forms.py in this case. Thanks.</p>