Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jagtaprathmesh19/django-liberary-app


https://github.com/jagtaprathmesh19/django-liberary-app

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# django-library-app

### 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

### Reference
A tutorial app to explain django dynamic formsets. Blog post can be found [here](https://medium.com/@taranjeet/adding-forms-dynamically-to-a-django-formset-375f1090c2b0)