This project has been archived by its maintainers, and is no longer receiving any updates.
Django pony forms
Django-pony-forms helps you to write better html for your Django forms.
Read the documentation on readthedocs
1: Better form html by default
The form html that Django produces is not very nice or useful. For example, the default output of a Django form is a table.
Just mixin PonyFormMixin to produce better html:
class ExampleForm(PonyFormMixin, forms.Form):
name = forms.CharField()
This produces the following html:
<div class="form-row row-name">
<label for="id_name">Name</label>
<input type="text" id="id_name" name="name" />
</div>
2: Write your own form templates
You can also write your own form templates:
class ExampleForm(PonyFormMixin, forms.Form):
name = forms.CharField()
form_template = 'my_form.html'
row_template = 'my_row.html'
my_form.html:
<div class="my_form">
{{ hidden_fields }}
{{ top_errors }}
{{ rows }}
</div>
Requirements
The package is tested with Django 2.2 - 3.1 and Python 3.6 - 3.8.
Installation
Install the package:
$ pip install django_pony_forms
Add django_pony_forms to your installed apps in settings.py.
INSTALLED_APPS = (
..
'django_pony_forms',
)
Metadata
Release files for django-pony-forms 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_pony_forms-1.1.0.tar.gz | 6.0 kB | Without provenance | Details for django_pony_forms-1.1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_pony_forms-1.1.0-py3.8.egg | Legacy Egg format | - | - | Details for django_pony_forms-1.1.0-py3.8.egg |
| django_pony_forms-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_pony_forms-1.1.0-py3-none-any.whl |
Total release size: 17.7 kB
Release files / django_pony_forms-1.1.0.tar.gz
| Download URL | django_pony_forms-1.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
061d456d1fbd047b6bec85461cbcdc9a720add489b1dedfa865c7becf5acc797
|
|
BLAKE2b-256 checksum How to use checksums |
9df01f3214e4522e7d7896bbc9caaac398692c957402fa8ab0ff5499093e3db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / django_pony_forms-1.1.0-py3.8.egg
| Download URL | django_pony_forms-1.1.0-py3.8.egg |
|---|---|
| Size | 5.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
0feec1b7eaeabc42b239ee7e71a2b2309afe867a359937a50c32f1da7947c650
|
|
BLAKE2b-256 checksum How to use checksums |
b34021d17491fc267d44f37eec2f0a983e83ed26c51e024bb6e88edd58114cdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / django_pony_forms-1.1.0-py3-none-any.whl
| Download URL | django_pony_forms-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a13c5c18968861f9206b937b6d6b25271746f4dbf64bec3cece6e74c5271232
|
|
BLAKE2b-256 checksum How to use checksums |
964b64b0d2bc9e009d637a008f93a694edafc8f69ef6e992566de6402c2b03c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for django-pony-forms 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.