pyconweb2018workshop

Django ORM queries optimization workshop

Stars
0

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