title: How to add Icons in Django forms
body: <p>So I wanted to add icons of font-awesome inside the input boxes which are rendered by django, but found no way to do so. The input boxes are provided by the django via</p>
  
  <pre><code>{{form.username}}
  </code></pre>
  
  <p>type of fields, and the output is like</p>
  
  <pre><code>&lt;input type="text" name="username" id="id_username" required placeholder="Username" maxlength="32" /&gt;
  </code></pre>
  
  <p>I achieved placeholder via the django widgets such as</p>
  
  <pre><code>username = forms.CharField(
          required = True,
          label = 'Username',
          max_length = 32,
          widget=forms.TextInput(
              attrs={'placeholder':'Username'},
              ),
          )
  </code></pre>
  
  <p>I would like to know how to place icons there too just like the image <a href="https://i.stack.imgur.com/y9Fy5.png" rel="nofollow noreferrer">shown</a>
   who's code is shown here</p>
  
  <pre><code>&lt;input placeholder="First Name" name="Name" class="name" type="text" required=""&gt;
  &lt;span class="icon1"&gt;&lt;i class="fa fa-user" aria-hidden="true"&gt;&lt;/i&gt;&lt;/span&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>