title: How do I add a placeholder on a CharField in Django?
body: <p>Take this very simple form for example:</p>
  
  <pre><code>class SearchForm(Form):
      q = forms.CharField(label='search')
  </code></pre>
  
  <p>This gets rendered in the template:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="text" name="q" id="id_q" /&gt;
  </code></pre>
  
  <p>However, I want to add the <code>placeholder</code> attribute to this field with a value of <code>Search</code> so that the HTML would look something like:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="text" name="q" id="id_q" placeholder="Search" /&gt;
  </code></pre>
  
  <p>Preferably I would like to pass the placeholder value in to <code>CharField</code> in the form class through a dictionary or something like:</p>
  
  <pre><code>q = forms.CharField(label='search', placeholder='Search')
  </code></pre>
  
  <p>What would be the best way to accomplish this?</p>