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
- Database
- Django
- Read Only
- Shell



