This repository contains the code and resources for the "Data & models" session of the Python Django - The Practical Guide tutorial series provided by Academind - Maximilian Schwarzmüller.
In this session, you will learn how to:
- Create Django models to define database tables
- Create database tables using Django migrations
- Query the database using Django's querysets
- Create and update objects in the database using Django's ORM
The code in this repository includes examples and exercises that will help you to solidify your understanding of these concepts.
Before using the code in this repository, you should have a working installation of Python and Poetry on your system. If you need help with this, please refer to the official documentation for installation instructions.
To use the code in this repository, simply clone the repository to your local machine:
git clone https://github.com/difegam/book-store.git
Then, navigate to the cloned directory and install the required dependencies:
cd book-store
poetry install
You can then run the Django development server to start the application:
poetry run python manage.py runserver
You should now be able to access the application by navigating to http://localhost:8000/
in your web browser.
Contributions to this repository are welcome! If you find a bug, or if you have an idea for an improvement, please feel free to open an issue or a pull request.
The code and resources in this repository are based on the Python Django - The Practical Guide tutorial series provided by Academind - Maximilian Schwarzmüller. Please refer to the original tutorial series for more information and resources.