django-db-readonly
django-db-readonly copied to clipboard
Force an entire site to become readonly. In a sort of hackish way.
Goal is to avoid restarting server instance
Is this library compatible with python3.7? thanks.
Can I use this app to ignore the write sql? I'm replicating a db to a slave, which is readonly. (and want to see the data in the db)
I've also written some tests.
...matching, eg. " update foo" as well as "UPDATE foo". Fixes an issue with some manually-generated queries I have that were not being prevented with the simple startswith() check.