This commit is contained in:
dev
2008-09-02 06:45:16 +00:00
parent 9fb0b9c60a
commit 0bd1e649d9

View File

@@ -23,8 +23,10 @@ class Response(BaseResponse, ETagResponseMixin):
# setup jinja # setup jinja
try: try:
env = Environment(loader=MemcachedFileSystemLoader('pages', memcache_host=['127.0.0.1:11211'])) env = Environment(loader=MemcachedFileSystemLoader('pages', memcache_host=['127.0.0.1:11211']))
print 'cache: memcached'
except RuntimeError: except RuntimeError:
env = Environment(loader=FileSystemLoader('pages', use_memcache=True)) env = Environment(loader=FileSystemLoader('pages', use_memcache=True))
print 'cache: none'
def app(environ, start_response): def app(environ, start_response):
"""The WSGI application that connects all together.""" """The WSGI application that connects all together."""