Formica
Overview
Rendering forms with Django can be painful and not very rewarding. There are some nice solutions arround like django-floppyforms or django-crispy-forms but you may want something a bit less complex.
Formica design is heavily based on Formulation, a very lightweight, yet powerful, solution based on template blocks. All credits should go to Curtis Maloney for this impressive and simple idea.
A simple example
Say we have a form somewhere and want to render it in a template.
from django import forms class MyForm(forms.Form): email = forms.EmailField(label='Email') check = forms.BooleanField(label='I really love spam', required=False)
Rendering the form is as simple as:
{% load formica %}
<form method="post">
{% form "formica/base_form.html" %}
{% fields %}
{% endform %}
<p><input type="submit" value="save" /></p>
</form>
Pretty cool isn’t it? Read the documentation to learn more.
Sources & license
Formica sources are hosted on Github: https://github.com/olivier-m/formica
Formica is released under the FreeBSD license.
Metadata
Release files for formica 1.2.1
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 |
|---|---|---|---|---|
| formica-1.2.1.tar.gz | 7.0 kB | Without provenance | Details for formica-1.2.1.tar.gz |
Release files / formica-1.2.1.tar.gz
| Download URL | formica-1.2.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
899abdebe55dc6e25ece7404ca59257f0754a4753122b42d03a9dd0a4d5a7efb
|
|
BLAKE2b-256 checksum How to use checksums |
f1e415e3e107a09a88d7b356c37ade71e0c88a9082af058ebd026e736d6a5d54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for formica 1.2.1
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.