Demo website with dynamic formset created by package django-formset-js
Original pacakge: https://pypi.org/project/django-formset-js/
Please clone this project first.
$ git clone https://github.com/chenuin/django-formset-js.git
In my case, django 2.1.2 is installed. In order to style our form eazily, package django-widget-tweaks
helps. It's optional if you don't mind interface.
# Method1: manually install
$ pip install django
$ pip install django-formset-js
$ pip install django-widget-tweaks
# Method2: install by requirements.txt
$ pip install -r requirements.txt
The project adopts default settings "SQLite" as database.
$ python manage.py collectstatic
$ python manage.py makemigrations myapp
$ python manage.py migrate
It's time to show our achievement!
$ python manage.py runserver
Open http://localhost:8000 in the browser to check it work properly