django-renderformplain provides template tags that allow you to render form fields in plaintext.
::TODO
- Add
django-renderformplain
directory to your Python path. - Add
renderformplain
to yourINSTALLED_APPS
tuple found in your settings file.
::TODO
- Load renderformplain tags in your template with
{% load renderformplain_tags %}
. - You can create a plaintext rendering copy of a form with
{% plainform some_form as new_variable %}
and then render normally;{{ new_variable|as_p }}
. - You can output just one field's data with
{{ some_form.field_name|data }}
. - You can use
PlainTextWidget
in your own forms.