tile_app가 WSGI 응용 프로그램 인 경우 그렇게 부르는 결과를 다시 반환해야합니다 ...
from pyramid.wsgi import wsgiapp
# Enable TileStache tile server
import TileStache
tile_app = TileStache.WSGITileServer('tilestache/tilestache.cfg', autoreload=False)
@wsgiapp
def tileserver(environ, start_response):
return tile_app(environ, start_response)
참고 : 앱 작성을 모듈 레벨로 옮겼으며 요청이 처리 될 때마다 가져 오기에 생성되며 가져 오기가 아닙니다. 그것은 당신이 찾고있는 행동이 아니라 대부분의 시간입니다.