This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Invalidate Johnny Cache's cache for given models outside "normal Django" | |
(e.g. in a management command). | |
""" | |
from johnny.cache import invalidate | |
from johnny.middleware import QueryCacheMiddleware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from fabric.api import run, cd, env, abort | |
from fabric.contrib.console import confirm | |
from fabric.context_managers import prefix | |
from fabric.tasks import Task | |
env.hosts = ['[email protected]'] | |
env.settings = ['staging', 'production'] |
OlderNewer