{ "info": { "author": "Ryan P Kilby", "author_email": "rpkilby@ncsu.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "django-template-forms\n=====================\n\n|Build Status| |Codecov| |Version| |License|\n\nTemplate based form rendering for Django\n\n--------------\n\nOverview\n--------\n\nDjango 1.11 recently introduced template-based widget rendering to allow\neasier customization of widgets by users. ``django-template-forms`` is\nthe logical extension of this feature, implementing template-based\nrendering for fields and forms.\n\nAt this point, simple block forms are supported for Bootstrap 3 & 4.\nHorizontal forms and check/radio field layouts are inbound.\n\nRequirements\n------------\n\n- **Python**: 3.4, 3.5, 3.6\n- **Django**: 1.11, 2.0b\n\nInstall with pip:\n\n.. code:: sh\n\n $ pip install django-template-forms\n\nConfiguration\n-------------\n\nOnce installed, add ``'template_forms'`` to your ``INSTALLED_APPS``.\n\n.. code:: python\n\n INSTALLED_APPS = [\n ...\n 'template_forms',\n ]\n\nUsage\n-----\n\nAll ``template_forms`` form classes inherit from\n``django.forms.BaseForm`` and are intended to be mixed with a concrete\n``forms.Form`` or ``froms.ModelForm``. Example usage:\n\n.. code:: python\n\n from django import forms\n from template_forms import bs3\n\n from .models import Article\n\n\n class ArticleForm(bs3.BlockForm, forms.ModelForm):\n class Meta:\n model = Article\n fields = ['title', 'author', 'published_date', ...]\n\nIn the *view* template:\n\n.. code:: html\n\n
\n\n**TODO:** Document creation of custom ``TemplateForm`` subclass.\n\nOverriding Templates\n--------------------\n\n``django-template-forms`` provides a default set of templates. To\noverride these, you first need to consider the\n```FORM_RENDERER``