Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-dynamicforms 0.1.2

    Download button

    No screenshots available
    Downloads: 140  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Roald de Vries | More programs
    The Apache License 2.0 / FREE
    July 5th, 2011, 11:57 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-dynamicforms description

    Dynamically add forms to your site through the admin interface

    django-dynamicforms is a Django app to dynamically add forms to your site through the admin interface.

    With django-dynamicforms you can:

    - add forms through the admin interface
    - add (custom) form fields through the admin interface
    - reuse form fields in different forms
    - customize predefined forms through the admin interface
    - send personalized e-mails to submitters of dynamicforms
    - download data posted to forms as CSV

    Install

    - pip install django-dynamicforms
    - add 'dynamicforms' to your INSTALLED_APPS
    - add (r'^dynamicforms/', include('dynamicforms.urls')) to your urls.py

    Settings

    There are two optional settings: DYNAMICFORM_TYPES and DYNAMICFIELD_TYPES, which define custom form and field types respectively. For example:

    DYNAMICFORM_TYPES = {
     'newsletter-subscription': {
     'VERBOSE_NAME': 'Newsletter subscription',
     'BASE_FORM': 'newsletters.forms.SubscriptionForm',
     'SUCCESS_URL': '/newsletter/thanks/',
     'TEMPLATE': 'dynamicforms/form.html',
     'TAG_TEMPLATE': 'dynamicforms/_form.html',
     'EMAIL_TEMPLATE': 'dynamicforms/notification.html',
     },
    }

    DYNAMICFIELD_TYPES = {
     'phone': {
     'VERBOSE_NAME': 'Phone number',
     'FIELD': 'phone.forms.PhoneField',
     'HAS_CHOICES': False,
     'DEFAULT': '',
     'WIDGET': 'django.forms.TextInput'
     },
    }


    Response e-mails are sent from settings.DEFAULT_FROM_EMAIL. Notification e-mails are sent from settings.SERVER_EMAIL.

    Usage

    Template tag

    Every form has its own page, but can also be included in other pages with:

    {% load dynamicform_tags %}
    ...
    {% show_dynamicform %}


    It will always post to its own url, though, and validation errors will have to be corrected there.

    Templates

    The templates used to render dynamicforms can be overridden by custom form types, but default to: - dynamicforms/form.html for the form url - dynamicforms/_form.html for the template tag - dynamicforms/notification.eml for the notification e-mail


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    dynamic forms | Django forms | Django | dynamic | forms

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM