/blog-playground

Try our tips to optimize Django queries by yourself

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

Gitguardian Engineering Blog Playground

Welcome to this playground. You can test all tips of 10 tips to optimize PostgreSQL queries in your Django project using this repo.

Quickstart

Requirements

To run this playground, you'll need

Usage

  1. Install virtualenv

You may need to install graphviz before

pipenv install -d
  1. Setup your environment

Copy the example env file

cp .env.example .env

Edit .env by setting a PostgreSQL password and a Django Secret Key.

  1. Activate your environment
pipenv shell
  1. Start your PostgreSQL container
docker compose up -d
  1. Open a notebook
./manage.py shell_plus --notebook

You are now ready to start ;)

Our Sample App

Alt text

DjangCon

The slides are randered from the markdown files in djangocon_workshop/slides using quarto You can look at the presentation by untaring djangocon_workshop/quarto_files.tar.xz and opening the HTML files in djangocon_workshop/quarto_files/djangcon_workshop/slides with any browser