code: def as_uni_form(form):
      
      if isinstance(form, BaseFormSet):
          if settings.DEBUG:
              template = get_template('uni_form/uni_formset.html')
          else:
              template = uni_formset_template
          c = Context({'formset': form})
      else:
          if settings.DEBUG:
              template = get_template('uni_form/uni_form.html')
          else:
              template = uni_form_template
          c = Context({'form': form})
      return template.render(c)
docs: The original and still very useful way to generate a uni-form form/formset::
      
          {% load uni_form_tags %}
  
          <form class="uniForm" action="post">
              {% csrf_token %}
              {{ myform|as_uni_form }}
          </form>