title: Django crispy forms: Exception while resolving variable 'form_html' in template 'bootstrap3/whole_uni_form.html'
body: <p>I'm making my first Django app and I decided to use Crispy forms. When I'm accessing my view, it throws a bunch of weird <a href="http://pastebin.com/xgpaKAig" rel="noreferrer">errors</a> (I PasteBinned them because the listing is really, <strong>really</strong> big). The strange thing is, the form actually renders correctly.</p>
  
  <p>My form class:</p>
  
  <pre><code>def _article_form_widget():
      return forms.Textarea(
          attrs={'rows': 30}
          )
  
  # [...] Some other forms
  
  class NewArticleForm(forms.Form):
  
      """New article form"""
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
          self.helper = FormHelper()
          self.helper.form_id  = 'new_article_form'
  
          self.helper.add_input(Submit('submit', 'Submit'))
  
      name = forms.CharField(label='Article name', max_length=1100)
      slug = forms.SlugField(label='Article slug', max_length=1100)
      body = forms.CharField(label='Article body', widget=_article_form_widget())
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>class NewArticleView(FormView):
  
      form_class = NewArticleForm
      template_name = 'wiki/new_article.html'
  
      def form_valid(self, form):
          with transaction.atomic():
              self.article = Article(body=form.cleaned_data['body'])
              self.article.save()
              self.main_alias = Alias(
                  name=form.cleaned_data['name'],
                  slug=form.cleaned_data['slug'],
                  article=self.article
              )
              self.main_alias.save()
          return super().form_valid(form)
  
      def get_success_url(self):
          return reverse_lazy('article-detail',
                              kwargs={'slug': self.main_alias.slug})
  </code></pre>
  
  <p>The template:</p>
  
  <pre><code>{% extends "base.html" %}
  
  {% block content %}
      &lt;h1&gt;New article&lt;/h1&gt;
  
      {% load crispy_forms_tags %}
      {% crispy form %}
  {% endblock content %}
  </code></pre>
  
  <p>I tried updating Django and django-crispy-forms, but no avail. Please help me solve this mystery.</p>