Drop fabric, which is heavy and expensive. Tests work against Django 1.5.5, 1.4.9 and 1.6c1 with no other changes.
Also pin for other writing HTTP methods (e.g., PUT or DELETE), not just POST
Fix for the .gitignore
Updating Repo URL for PyPI
Since the repo url changed, the link on the pypi project page no longer works. This just fixes that.
Allows views to indicate that they do--or have done--a DB write.
Pay attention to `response._db_write` and provide a decorator to set it to True. If the attribute exists and is true, set the pinning cookie as if the request had been a `POST`. If a view _may_ do a DB write, set the attribute on the response object if necessary before returning it.
Adds `multidb.pinning.use_master`, which is both a context manager and a decorator, i.e., you can do: >>> with use_master: ... do_stuff() or you can do: >>> @use_master ... def do_stuff():
Refactor middleware tests to save duplication.
Now, instead of a post-save hook, assume any POST request is a write, and set a cookie that keeps reads on the master for 15 seconds thereafter. Assumes we manually call using() to target reads to the master for the remainder of a request after a write. Also, renamed everything from "sticky" to "pinned" by popular demand.
… a write.