Welcome to the Django Performance Optimization Workshop! 🎉
This repository contains the code used in the workshop presentation, which covers different techniques to optimize the performance of Django REST APIs. These techniques include queryset optimization, database indexing and caching.
To run this code on your local machine, follow these simple steps:
- Make sure you have Docker and Docker Compose installed on your machine.
- Clone this repository to your local machine.
git clone https://github.com/Ubiwhere/django-optimization-101
- Open your terminal, navigate to the repository folder, and run the following command:
docker-compose up --build -d
This command will set up all the necessary services (Django API, database, Redis for cache), install Django Debug Toolbar, and generate mock data.
If you want to follow along with the presentation, you can access it on Canva using this link 👈
The API endpoints are documented using Swagger and can be accessed at http://localhost:8000/api once you start the application.
Let's get optimizing! 🔥 🔥 🔥
This code is released under the MIT License. See LICENSE for more information.