title: Styling a generic.edit.CreateView Form in Django Using Bootstrap
body: <p>I have the following view in my Django app:</p>
  
  <pre><code>class TodoCreateView(generic.edit.CreateView):
      model = Todo
      fields = ['todo_name','todo_description']
      template_name = 'list/todo-create.html'
      success_url = reverse_lazy('list:index')
      def form_valid(self, form):
          form.instance.owner = self.request.user
          form.instance.created_date = datetime.now()
          return super(EntryCreateView, self).form_valid(form)
  </code></pre>
  
  <p>This view corresponds to the following template:</p>
  
  <pre><code>{% extends 'list/base.html' %}
  
  {# Load the tag library #}
  {% load bootstrap3 %}
  
  {# Load CSS and JavaScript #}
  {% bootstrap_css %}
  
  
  {# Display django.contrib.messages as Bootstrap alerts #}
  {% bootstrap_messages %}
  
  {% block content %}
  
  &lt;h1&gt;Todo:&lt;/h1&gt;
  &lt;div&gt;
  &lt;form action="" method="post"&gt;{% csrf_token %}
      {{ form.as_p }}
      &lt;input type="submit" value="Save" /&gt;
  &lt;/form&gt;
  
  {% endblock %}
  </code></pre>
  
  <p>Obviously, Django composes and outputs the form based on the fields indicated in the View. However, it seems to leave no chance to style the form fields with CSS. How can I do that? </p>