Skip to main content

django-siteforms

https://github.com/idlesign/django-siteforms

release lic coverage

Django reusable app that renders complete forms and reduces the amount of form-related template code. It supports declarative layouts and attributes, Bootstrap 4 and 5, nested subforms, read-only views, and queryset filtering forms.

Installation

$ python -m pip install django-siteforms

Python 3.10 or newer and Django 3.2 or newer are required. See the tested compatibility matrix for the combinations covered by CI.

Quick example

from siteforms.composers.bootstrap5 import Bootstrap5
from siteforms.toolbox import ModelForm

from .models import Article


class ArticleForm(ModelForm):

    class Composer(Bootstrap5):
        opt_submit = 'Save'

    class Meta:
        model = Article
        fields = ['title', 'contents']

Pass the request and data source when constructing the form:

form = ArticleForm(request=request, src='POST')

if form.is_submitted and form.is_valid():
    article = form.save()

Then render it directly:

{{ form }}

The output includes the <form> wrapper, CSRF token, fields, and submit button. Start with the Quickstart and continue with the full documentation.

Metadata

Release files for django-siteforms 1.4.0

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-siteforms 1.4.0
File Size Uploaded Provenance Actions
django_siteforms-1.4.0.tar.gz 30.0 kB Without provenance Details for django_siteforms-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-siteforms 1.4.0
File Interpreter ABI Platform Actions
django_siteforms-1.4.0-py3-none-any.whl Python 3 none any Details for django_siteforms-1.4.0-py3-none-any.whl

Total release size: 74.8 kB

Release files / django_siteforms-1.4.0.tar.gz

Download URL django_siteforms-1.4.0.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3c88047461b114e097554153ef0c5303977f6fe636ba22a2d7e5bdf099947354
BLAKE2b-256 checksum
How to use checksums
64f905eb190551b7eb623be5bc75e7debb16c1a7a917dae39be052522e7f8722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / django_siteforms-1.4.0-py3-none-any.whl

Download URL django_siteforms-1.4.0-py3-none-any.whl
Size 44.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3edbb6f4cc2b74dc2191586e7c8e2f1adb53490b6d5dca2d492ebc43e9be42ae
BLAKE2b-256 checksum
How to use checksums
431698d2cb3ce005d92e015df8ee8e80a25b1d0bf08a3d18176e54a4bc856fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for django-siteforms 1.4.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.

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