This example shows how to work with book store.
git clone https://github.com/YevgeniiKaidashov/book-store.git
- Go to project root folder in the terminal and execute command
pip install -r requirements.txt
- Execute command
manage.py migrate
to apply all migrations and create db.sqlite3 by default - Execute command
manage.py loaddata author.json
to load authors data to database from fixtures - Execute command
manage.py loaddata book.json
to load books data to database from fixtures - Execute command
manage.py createsuperuser
to create a superuser account, which we can use for admin panel - There is
manage.py show_books
command.
By default it shows books by ASC ordering, if you want to order by DESC use--order desc
argument