Skip to content
All lessons

Tech Insights· chase-seibert.github.io

quickly define a django management command for read-only shell

From chase-seibert.github.io

Say you have a bunch of developers that occasionally need Django shell access to production, but you want this to be an exceptional event. Here is a drop-in replacement for ./manage.py shell that defaults to read-only mode, but lets the developer switch to writable mode on the fly, while notifying the team.

Shared by

Read on chase-seibert.github.io
  • Database
  • Django
  • Read Only
  • Shell

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us