⚠️ Warning: This project is currently under heavy active development and is not yet stable. It is not advisable to use this in any kind of production context.
The django-flexible-forms
module allows you to define forms in your
database and use them like regular ol' Django forms.
Features include:
- Database-driven form configuration. Define your forms and their fields with database records. Great for form builders.
- A familiar Django forms API. No special syntax or vocabulary necessary for
core features. Create your
Form
in the database, callas_django_form()
on it, and you'll have a run-of-the-milldjango.forms.ModelForm
instance. - Dynamic form support. Wanna hide a field until another field is filled out,
or only require a field based on the current form state? You can configure
those behaviors by adding
FieldModifier
s to your form fields.
To get the project up and running, you'll need Poetry.
Once you have Poetry installed, simply run:
$ bin/setup
To start the test project:
$ bin/start
You can log in to the Django admin of the test project with username admin
and password admin
.
To run the test suite, run:
$ bin/test