Django Library App Save

A tutorial app to explain django dynamic formsets

Project README

django-library-app

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

Setup

  • Clone the project
git clone https://github.com/taranjeet/django-library-app.git
  • Make sure python and virtual environment is installed. Create virtual environment and install packages
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
  • Run migrate command
python manage.py migrate
  • Run the server
python manage.py runserver

How to use

The project contains three routes namely

  • /store/book/create_normal

This is the demo for adding multiple books using normal forms

  • /store/book/create_model

This is the demo for adding multiple books using model forms

  • /store/book/create_with_author

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

Open Source Agenda is not affiliated with "Django Library App" Project. README Source: taranjeet/django-library-app
Stars
49
Open Issues
1
Last Commit
4 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating