Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(8)  |  Derive(0)  |  Import(7)

src/d/j/django-dynasite-0.1beta3/dynasite/middleware.py   django-dynasite(Download)
from django.conf import settings
from django.core.cache import get_cache, DEFAULT_CACHE_ALIAS
from django.utils.cache import patch_response_headers, get_max_age
from cache import get_cache_key, learn_cache_key
 
 
        # try and get the cached GET response
        cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
        if cache_key is None:
            request._cache_update_cache = True
            return None # No cache information available, need to rebuild.
        response = self.cache.get(cache_key, None)
        # if it wasn't found and we are looking for a HEAD, try looking just for that
        if response is None and request.method == 'HEAD':
            cache_key = get_cache_key(request, self.key_prefix, 'HEAD', cache=self.cache)

src/d/j/django-scss-0.6.1/django_scss/templatetags/scss.py   django-scss(Download)
from ..cache import get_cache_key, get_hexdigest, get_hashed_mtime
from ..settings import SCSS_EXECUTABLE, SCSS_USE_CACHE,\
    SCSS_CACHE_TIMEOUT, SCSS_ROOT, SCSS_OUTPUT_DIR, SCSS_DEVMODE,\
    SCSS_DEVMODE_WATCH_DIRS
from ..utils import compile_scss, STATIC_ROOT
    def render(self, context):
        output = self.nodelist.render(context)
 
        if SCSS_USE_CACHE:
            cache_key = get_cache_key(get_hexdigest(output))

src/d/j/django-less-0.7.2/less/templatetags/less.py   django-less(Download)
from tempfile import NamedTemporaryFile
from ..cache import get_cache_key, get_hexdigest, get_hashed_mtime
from ..utils import compile_less
from ..settings import LESS_EXECUTABLE, LESS_USE_CACHE,\
    LESS_CACHE_TIMEOUT, LESS_ROOT, LESS_OUTPUT_DIR, LESS_DEVMODE,\
    def render(self, context):
        output = self.nodelist.render(context)
 
        if LESS_USE_CACHE:
            cache_key = get_cache_key(get_hexdigest(output))

src/d/j/django-coffeescript-0.7.2/coffeescript/templatetags/coffeescript.py   django-coffeescript(Download)
from ..cache import get_cache_key, get_hexdigest, get_hashed_mtime
from django.contrib.staticfiles import finders
from ..settings import COFFEESCRIPT_EXECUTABLE, COFFEESCRIPT_USE_CACHE,\
    COFFEESCRIPT_CACHE_TIMEOUT, COFFEESCRIPT_ROOT, COFFEESCRIPT_OUTPUT_DIR,\
    POSIX_COMPATIBLE
    def render(self, context):
        output = self.nodelist.render(context)
 
        if COFFEESCRIPT_USE_CACHE:
            cache_key = get_cache_key(get_hexdigest(output))

src/d/j/django-less-HEAD/less/templatetags/less.py   django-less(Download)
from tempfile import NamedTemporaryFile
from ..cache import get_cache_key, get_hexdigest, get_hashed_mtime
from ..utils import compile_less
from ..settings import LESS_EXECUTABLE, LESS_USE_CACHE,\
    LESS_CACHE_TIMEOUT, LESS_ROOT, LESS_OUTPUT_DIR, LESS_DEVMODE,\
    def render(self, context):
        output = self.nodelist.render(context)
 
        if LESS_USE_CACHE:
            cache_key = get_cache_key(get_hexdigest(output))

src/d/j/django-coffeescript-HEAD/coffeescript/templatetags/coffeescript.py   django-coffeescript(Download)
from ..cache import get_cache_key, get_hexdigest, get_hashed_mtime
from django.contrib.staticfiles import finders
from ..settings import COFFEESCRIPT_EXECUTABLE, COFFEESCRIPT_USE_CACHE,\
    COFFEESCRIPT_CACHE_TIMEOUT, COFFEESCRIPT_ROOT, COFFEESCRIPT_OUTPUT_DIR,\
    POSIX_COMPATIBLE
    def render(self, context):
        output = self.nodelist.render(context)
 
        if COFFEESCRIPT_USE_CACHE:
            cache_key = get_cache_key(get_hexdigest(output))

src/d/j/django-scss-HEAD/django_scss/templatetags/scss.py   django-scss(Download)
from ..cache import get_cache_key, get_hexdigest, get_hashed_mtime
from ..settings import SCSS_EXECUTABLE, SCSS_USE_CACHE,\
    SCSS_CACHE_TIMEOUT, SCSS_ROOT, SCSS_OUTPUT_DIR, SCSS_DEVMODE,\
    SCSS_DEVMODE_WATCH_DIRS
from ..utils import compile_scss, STATIC_ROOT
    def render(self, context):
        output = self.nodelist.render(context)
 
        if SCSS_USE_CACHE:
            cache_key = get_cache_key(get_hexdigest(output))