django-dataforms 0.2.0

Dynamic, database-driven Django forms
django-dataforms is a wrapper for the Django forms API that lets you dynamically define forms in a database, rather than hard-coding form definitions.

This can be especially helpful for projects that have many forms and/or forms which constantly change, and you don't want to be constantly updating models and schemas. No model creation required.

See the GettingStarted guide to jump in.

Go from this...

# forms.py
from django import forms

class ContactForm(forms.Form):
 subject = forms.CharField(max_length=100)
 message = forms.CharField()
 sender = forms.EmailField()
 cc_myself = forms.BooleanField(required=False)

# view.py
def contact(request):
 if request.method == 'POST':
 form = ContactForm(request.POST)
 # ...
 else:
 form = ContactForm()

 return render_to_response('contact.html', {'form': form,})


To this!

# Now your form is stored in the database and you can
# change it without changing a model and DB schema!
create_form(request=request, form="contact-form" submission="mySubmission")

last updated on:
November 24th, 2011, 11:40 GMT
price:
FREE!
homepage:
github.com
license type:
GPL v3 
developed by:
Jay McEntire
category:
ROOT \ Internet \ HTTP (WWW)
django-dataforms
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT