Skip to main content

django-dynamic-forms is a reusable Django application to create and configure forms through the admin.

Project description

https://pypip.in/v/django-dynamic-forms/badge.png https://pypip.in/d/django-dynamic-forms/badge.png https://travis-ci.org/Markush2010/django-dynamic-forms.png https://coveralls.io/repos/Markush2010/django-dynamic-forms/badge.png?branch=develop

django-dynamic-forms lets you create your forms through the Django admin. You can add and remove form fields as you need them. That makes it perfect for creating survey or application forms.

INSTALLATION

Add 'dynamic_forms' to the INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'dynamic_forms',
    ...
)

Add 'dynamic_forms.middlewares.FormModelMiddleware' to the MIDDLEWARE_CLASSES (probably at the end):

MIDDLEWARE_CLASSES = (
    ...
    'dynamic_forms.middlewares.FormModelMiddleware'
)

You can set DYNAMIC_FORMS_EMAIL_RECIPIENTS in your settings to a list of e-mail addresses. Forms being send via e-mail will then be send to those addresses instead of those defined in settings.ADMINS. Each recipient will see all other recipients. See send_mail in the officiall documentation.

Example

  1. Change into the example/ directory

  2. Run ./manage.py runserver

The admin is available at http://127.0.0.1:8000/admin/.

  • Username: admin

  • Password: password

You can find an example form at http://127.0.0.1:8000/example-form/.

Running the tests

  1. Change into the tests/ directory

  2. Run ./runtests.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-dynamic-forms-0.2.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

django_dynamic_forms-0.2-py2.py3-none-any.whl (24.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-dynamic-forms-0.2.tar.gz.

File metadata

File hashes

Hashes for django-dynamic-forms-0.2.tar.gz
Algorithm Hash digest
SHA256 decbd9c025f6d5ac3bd03320005bc2dc383133868840fe48e1eddeb5ce1b0921
MD5 158e33c99110f6dfa0b42041c44fca35
BLAKE2b-256 d3a0deb244266d0ff288f0f15305c0e00e3c9581e888a9b55d69a932b2b79ae2

See more details on using hashes here.

Provenance

File details

Details for the file django_dynamic_forms-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_dynamic_forms-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1abd2157d2b3905c2206563eb94777a3be29fca04c7e5854eebf3015f341e14b
MD5 927b34474f32d39fcd1938d3b57069b6
BLAKE2b-256 df49a18891d10a64ced9e27cf8844cd9a95a0c6f48d78c3f494514be93e8b2ce

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page