LD250 / pyconweb2018workshop

Django ORM queries optimization workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database queries optimization workshop.

Requirements

  • python3.5/3.6
  • mysql5.7/sqlite

Setup

  1. Install Requirements. pip install -r requirements/dev.txt

  2. install MySQL

    • If you have docker and docker compose, you can use docker-compose up

    • If you have sqlite, you can change settings in mysite/settings.py

    • To check that everything ok, run ./manage.py showmigrations

  3. Run migrations ./manage.py migrate

  4. Create superuser ./manage.py createsuperuser

Additional setup information

Install python environment

Docker

Install MySQL Ubuntu

Install MySQL Mac

About

Django ORM queries optimization workshop


Languages

Language:Python 91.4%Language:HTML 8.1%Language:CSS 0.5%