Django 6 · Database and migrations

Open the database shell

Open psql, mysql or sqlite3 using the settings in DATABASES.

python manage.py dbshell

Official Django 6 documentation

More database and migrations commands

All database and migrations commands · Django 6 cheatsheet

Was this page helpful?