MySql and VSCode

VSCode has nice extension for SQL but for MySql connection there is a bit of a trick needed: https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

flush privileges;

Django Admin

First we create superuser with python manage.py createsuperuser

Add django.contrib.sessions to installed apps.

Add models

in admin.py

admin.site.register('models.modelname')