Skip to main content

django-simple-form

Django-simple-form is a simple way to build your forms in HTML-level.

Installation

You can get Django simple form by using pip:

$ pip install django-simple-form

To enable the package you need to add it to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'simple_form',
    ...
]

Usage

Render all fields form:

{% load simple_form %}

...

{{ form|render_form }}

Render field by field:

{% load simple_form %}

...

{{ form.name|render_field }}
{{ form.email|render_field }}

Custom the template

Create a folder with name simple_form in your template dir:

templates/
    ...
    simple_form/
        field.html
        ...

In HTML file you define the structure for each field the form:

<div>
  <label for="{{ field.auto_id }}">
    {{ field.label }}
  </label>

  {{ field }}

  {% if field.errors %}
    {% for error in field.errors %}
      <span>{{ error }}</span>
    {% endfor %}
  {% endif %}
</div>

{% if field.help_text %}
  <p title="{{ field.help_text }}">
    {{ field.help_text }}
  </p>
{% endif %}

If you need to customize the rendering for the type field, create an HTML file to the specific type of his widget:

templates/
    ...
    simple_form/
        field.html
        checkboxinput.html
        ...

Metadata

Release files for django-simple-form 0.0.2

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-simple-form 0.0.2
File Size Uploaded Provenance Actions
django-simple-form-0.0.2.tar.gz 3.9 kB Without provenance Details for django-simple-form-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-simple-form 0.0.2
File Interpreter ABI Platform Actions
django_simple_form-0.0.2-py3-none-any.whl Python 3 none any Details for django_simple_form-0.0.2-py3-none-any.whl

Total release size: 8.0 kB

Release files / django-simple-form-0.0.2.tar.gz

Download URL django-simple-form-0.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
03a7be73e01201d8d7fd693944f4e48363fdff0a85c38da42f6727c292b9c664
BLAKE2b-256 checksum
How to use checksums
f1cd76ee113f2f0b35aebd7362918f8579dce457cce643d980c762cb6ad9a2bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.2

Release files / django_simple_form-0.0.2-py3-none-any.whl

Download URL django_simple_form-0.0.2-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae38f1d32f6a5c8751d95679b607c18ffc0db0f229b491d025e5928c4ea15112
BLAKE2b-256 checksum
How to use checksums
d822a288448f7e6f0483d427c190fa3f5d925500b450ae4888abb1908cb37044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.2

Security for django-simple-form 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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