This file contains 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
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from django.views.decorators.csrf import csrf_exempt | |
from django.http import HttpResponse | |
from django.core.files.storage import default_storage | |
from django.core.files.base import ContentFile | |
from django.conf import settings | |
from django.shortcuts import render | |
import json | |
import md5 |
This file contains 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
"Memcached cache backend" | |
import time | |
from django.conf import settings | |
from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError | |
from django.utils.encoding import smart_unicode, smart_str | |
class CacheClass(BaseCache): | |
def __init__(self, server, params): |