Skip to content

taranjeet/django-library-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tutorial app to explain django dynamic formsets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published