Skip to main content

django Standard Form

Quick and simple django templatetags for displaying forms.

Installation

  1. pip install django-standard-form

  2. add 'standard_form' to your INSTALLED_APPS

Usage

  • Most basic example:

{% load standard_form %}

<form action="" method="post" class="frm">
    {% csrf_token %}
    <fieldset class="frm-horizontal">
        {% standard_form form %}
        {% standard_submit %}
    </fieldset>
</form>
  • Rendering fields individually:

<form action="" method="post" class="frm">
    {% csrf_token %}
    <fieldset class="frm-horizontal">
        <ol>
            <li>{% standard_field form.field_name_one %}</li>
        </ol>
    </fieldset>
    <fieldset class="frm-vertical">
        <ol>
            <li>{% standard_field form.field_name_two %}</li>
        </ol>
        {% standard_submit %}
    </fieldset>
</form>
  • Rendering widgets individually:

<form action="" method="post" class="frm">
    {% csrf_token %}
    <fieldset class="frm-horizontal">
        <ol>
             <li>
                 <label for="id_{{ form.field_name_one.name }}">My label or other stuff</label>
                 <div class="field">{% standard_widget form.field_name_one %}</div>
             </li>
             <li>
                 <label class="empty"></label>
                 <div class="field"><input type="submit" class="btn" value="{% trans 'Go' %}" /></div>
             </li>
        </ol>
    </fieldset>
</form>
  • All available options:

{% standard_field form.field_name_one 'no_required no_required_helper no_help_text no_error_text' custom_class='input-block' placeholder='This one has all the available options' label='My label' %}

Metadata

Release files for django-standard-form 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-standard-form 1.1.1
File Size Uploaded Provenance Actions
django-standard-form-1.1.1.tar.gz 7.5 kB Without provenance Details for django-standard-form-1.1.1.tar.gz

Release files / django-standard-form-1.1.1.tar.gz

Download URL django-standard-form-1.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
33d338e891ecf47ce2c6c892261ec2d62ae763c6b65a216e04edd9e69ccce3e4
BLAKE2b-256 checksum
How to use checksums
e582cf78f0b7a46a938def87b8d3ed30ca284a4f6f31c3220f74918abe7c6cf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-standard-form 1.1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page