0PricingLogin
Django Academy · Lesson

Launching python manage.py shell

Open a shell with your project loaded.

A Playground for Your Project

The Django shell is an interactive Python session that already knows about your project, so you can test ideas live without writing a file. 🧪

Why Not Just python?

Plain python can not import your models, because Django settings are not loaded. The shell command wires everything up for you first.

All lessons in this course

  1. Launching python manage.py shell
  2. Importing and Inspecting Models
  3. Creating and Saving Objects Live
  4. shell_plus and Better Tooling
← Back to Django Academy