streeter / django-db-readonly

Force an entire site to become readonly. In a sort of hackish way.
MIT License
108 stars 21 forks source link

Add decorators and tests #22

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

https://github.com/dabapps/django-zen-queries/blob/master/zen_queries/decorators.py is a better approach, allowing per-connection, but that requires hooking into create_cursor, which is a bit harder, and diverges from the current approach used for the global readonly code (which was not being tested). So I think it is better to stick to one approach at the moment.

jayvdb commented 1 week ago

Ping @streeter