django-library-app

A tutorial app to explain django dynamic formsets. Blog post can be found here

Setup

git clone https://github.com/taranjeet/django-library-app.git
cd django-library-app
virtualenv -p $(which python3) pyenv
# activate virtual environment
source pyenv/bin/activate
# install packages
pip install -r requirements.txt
cd djlibrary
python manage.py migrate
python manage.py runserver

How to use

The project contains three routes namely

This is the demo for adding multiple books using normal forms

This is the demo for adding multiple books using model forms

This is the demo for adding a book with multiple author, both using model forms