minor
This commit is contained in:
@@ -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."""
|
||||||
|
Reference in New Issue
Block a user