code: def render_form(form):
      
  
      if 'crispy_forms' in settings.INSTALLED_APPS:
          from crispy_forms.templatetags.crispy_forms_filters import as_crispy_form
          return as_crispy_form(form)
  
      template = get_template("bootstrap/form.html")
      form = _preprocess_fields(form)
  
      return template.render({"form": form})
docs: same than  {{ form|crispy }} if crispy_forms is installed.
      render using a bootstrap3 templating otherwise