Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jagtaprathmesh19/django-liberary-app
https://github.com/jagtaprathmesh19/django-liberary-app
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jagtaprathmesh19/django-liberary-app
- Owner: jagtaprathmesh19
- Created: 2022-06-02T07:32:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T07:43:12.000Z (over 2 years ago)
- Last Synced: 2024-12-07T18:32:16.808Z (about 2 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)