Skip to content

Try our tips to optimize Django queries by yourself

License

Notifications You must be signed in to change notification settings

Lotram/django-playground

 
 

Repository files navigation

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

About

Try our tips to optimize Django queries by yourself

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 92.1%
  • Python 7.9%