Django UI Forms
A Django reusable app to extend forms and provide UI with templates available for Bootstrap and Tailwind CSS.
https://pypi.org/project/django-ui-forms/
Features
- Custom form handling with Bootstrap and Tailwind CSS support.
- Easy to use and integrate into existing Django projects.
- Flexible and reusable components for better form management.
Installation
You can install this package via pip:
pip install django-ui-forms
Usage
To use this package in your Django project, follow these steps:
- Add
django_ui_formsto yourINSTALLED_APPSin your Django settings:
INSTALLED_APPS = [
...
'django_ui_forms',
]
- Create your forms by extending
BootstrapBaseUiFormsorTailwindBaseUiForms:
from django import forms
from django_ui_forms.forms import BootstrapBaseUiForms, TailwindBaseUiForms
class MyForm(BootstrapBaseUiForms, forms.Form):
my_field = forms.CharField(label='My Field')
class MyModelForm(TailwindBaseUiForms, forms.ModelForm):
class Meta:
model = MyModel
fields = '__all__'
- Update custom form renderer in your settings:
from django.forms.renderers import TemplatesSetting
class CustomFormRenderer(TemplatesSetting):
form_template_name = "bootstrap_forms_snipprt.html" # for Bootstrap
form_template_name = "tailwind_forms_snipprt.html" # for Tailwind
FORM_RENDERER = 'your_project_name.settings.CustomFormRenderer'
- Use the forms in your views and templates.
Example
See the examples/ directory for a complete example of how to use this package in a Django project.
Running Tests
Tests are Under Development
Contributing
Contributions are welcome! Please submit a pull request or open an issue.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for django-ui-forms 1.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 |
|---|---|---|---|---|
| django-ui-forms-1.1.tar.gz | 10.9 kB | Without provenance | Details for django-ui-forms-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_ui_forms-1.1-py3-none-any.whl | Python 3 | none | any | Details for django_ui_forms-1.1-py3-none-any.whl |
Total release size: 33.0 kB
Release files / django-ui-forms-1.1.tar.gz
| Download URL | django-ui-forms-1.1.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f4e9d90c2c60dd4955b59753a9c0ad48484a26760d829cf7bc97cdb2f3f5c7d
|
|
BLAKE2b-256 checksum How to use checksums |
de35cce3167afcc7e254e1a7ac7f68da5cde5e7ddca9b2bcabde9a661a53e69c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Release files / django_ui_forms-1.1-py3-none-any.whl
| Download URL | django_ui_forms-1.1-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df2bdd8669c5f18638dbfbe1f5d0526f545d7184e264c2fef0578ef52b796714
|
|
BLAKE2b-256 checksum How to use checksums |
7d1a94d1b6886408d69e649fe2dd178069b2f0b54dc3ba0c86da93487b70f4df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Security for django-ui-forms 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.