没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > django-dynamic-formset |
|
django-dynamic-formset
|
| 1 | 0 | 14 |
| 贡献者 | 讨论 | 代码提交 |
Based on this snippet on http://djangosnippets.org, this jQuery plugin helps you create more usable formsets by allowing clients add and remove forms on the client-side.
The code for the snippet was extracted from a project I worked on. After using it on a few other projects, I thought it'd be a good idea to make it even easier to use with my current javascript library.
Installation instructionsThere are two ways to install this application for use by your projects; the first is to do a Subversion checkout:
svn co http://django-dynamic-formset.googlecode.com/svn/trunk/ django-dynamic-formsetThe second method is to download a packaged release. The latest release is 1.1. You can download the source and documentation only, or include the demo project:
wget http://django-dynamic-formset.googlecode.com/files/jquery.formset-1.1.zip
unzip jquery.formset-1.1.zip -d jquery.formset-1.1
cd jquery.formset-1.1The plugin files are in the src/ directory. If you downloaded the archive with the demo project, you'll need to set it up first.
Setting up the demo projectThe demo project is a Django project, showing different ways to use the plugin. To run the project, you'll need Python and Django. For instructions on installing them, see their respective sites.
You'll also need PySQLite - if you've got Python 2.5 and above, this is already included in the standard library.
Once you've set up Django, run the following commands to set up the database and start the development server:
cd demo
python ./manage.py syncdb
python ./manage.py runserverYou can now browse to http://localhost:8000/ and view the examples.
标签:
