Skip to main content

Django Bootstrap Forms (NVS)

Latest Version Downloads License

Django Bootstrap Forms is a Django app that provides enhanced form rendering with Bootstrap styles.

Installation

  1. Install the package using pip:

    pip install nvs-bootstrap-forms
  2. Add ‘bootstrap_forms’ to your INSTALLED_APPS in the Django settings:

    INSTALLED_APPS = [
        # ...
        'bootstrap_forms',
        # ...
    ]
  3. Include Bootstraps css and js links in your html:

    <!doctype html>
    <html lang="en">
      <head>
        <!-- Your headers goes here -->
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
      </head>
      <body>
        <!-- Your content goes here -->
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
      </body>
    </html>

Usage

  1. Load Bootstrap Forms in your template:

    {% load bootstrap_forms_tags %}
  2. Use the `bootstrap_form` template tag to render your form:

    <form method="post">
      {% csrf_token %}
      {% bootstrap_form form %}
      <button type="submit">Submit</button>
    </form>

    This will render the form with Bootstrap styles.

  3. Customization:

    • You can customize the rendering of individual fields by using the field_order and other attributes in your form fields.

    • For advanced customization, you can extend the provided BootstrapFormRendererNode class in the bootstrap_forms.templatetags.bootstrap_forms_tags module.

Contributing

Feel free to contribute by opening issues or submitting pull requests. Please read the Contributing Guidelines for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for nvs-bootstrap-forms 0.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 nvs-bootstrap-forms 0.1
File Size Uploaded Provenance
nvs-bootstrap-forms-0.1.tar.gz 9.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nvs-bootstrap-forms 0.1
File Interpreter ABI Platform
nvs_bootstrap_forms-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / nvs-bootstrap-forms-0.1.tar.gz

Download URL nvs-bootstrap-forms-0.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d63943635ff2b5433f7c9a2f43b7d7c1e357fbc3dfb372b24459b7948b89b15a
BLAKE2b-256 checksum
How to use checksums
71808632e0683f8fca66e5c91ee4fa26f1212340f8e9276c997e04dead5ba3de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / nvs_bootstrap_forms-0.1-py3-none-any.whl

Download URL nvs_bootstrap_forms-0.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
118f71ac221d1cc823d725c6b25ada860c1b5e73890190244100c54594439d6b
BLAKE2b-256 checksum
How to use checksums
4dd76841cdbdd3a6db9526ee1b65097b13af16ae10e40e28635f0609cb2fabc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for nvs-bootstrap-forms 0.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.

Release history Release notifications | RSS feed

This release

0.1 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