Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str
N/A N/A 
Decorators for using specific routing state for particular requests.
Used in cases when automatic switching based on request method doesn't
work.

Usage:

    from django_replicated.decorators import use_master, use_slave

    @use_master
    def my_view(request, ...):
        # master database used for all db operations during
        # execution of the view (if not explicitly overriden).

    @use_slave
    def my_view(request, ...):
        # same with slave connection
 __future__ unicode_literals django.utils.decorators decorator_from_middleware_with_args middleware ReplicationMiddleware N/A use_state N/A decorator_from_middleware_with_args ReplicationMiddleware N/A use_master N/A use_state master N/A use_slave N/A use_state slave