Database queries optimization workshop.
Requirements
- python3.5/3.6
- mysql5.7/sqlite
Setup
-
Install Requirements.
pip install -r requirements/dev.txt
-
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
-
-
Run migrations
./manage.py migrate
-
Create superuser
./manage.py createsuperuser