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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

        def get_cache_config():
    """Return a fully configured Django ``CACHES`` setting.

    Scans environment variables for available memcache addon.
    Additionally includes Django's LocMemCache backend under ``"locmem"``
    cache name.
    """
    caches = memcacheify()
    caches["locmem"] = {
        "BACKEND": "django.core.cache.backends.locmem.LocMemCache"
    }
    return caches
        


src/d/j/django-herokuify-1.0.pre3/herokuify/__init__.py   django-herokuify(Download)
#-*- coding: utf-8 -*-
 
from .db import get_db_config
from .cache import get_cache_config
 

src/d/j/django-herokuify-HEAD/herokuify/__init__.py   django-herokuify(Download)
#-*- coding: utf-8 -*-
 
from .db import get_db_config
from .cache import get_cache_config