예제 #1
0
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap_index.xml', root=STATIC_FILES_DIR, mimetype="application/xml")
def static(path):
	logging.debug("@bottle.route('/static/<path:path>')")
	logging.info(path)
	return bottle.static_file(path,root=STATIC_ROOT)
예제 #3
0
def get_sitemap_xml():
    return bottle.static_file('sitemap.xml', root=STATIC_FILES_DIR, mimetype="text/xml; charset=utf-8")
예제 #4
0
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap2.xml.gz', root=STATIC_FILES_DIR, mimetype="application/x-gzip")
예제 #5
0
def get_robotstxt():
    return bottle.static_file('favicon.ico', root=STATIC_FILES_DIR)
예제 #6
0
def get_robotstxt():
    return bottle.static_file('robots.txt', root=STATIC_FILES_DIR)
예제 #7
0
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap2.xml.gz', root=STATIC_FILES_DIR, mimetype="application/x-gzip")
예제 #8
0
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap_index.xml', root=STATIC_FILES_DIR, mimetype="application/xml")
예제 #9
0
def get_sitemap_xml():
    return bottle.static_file('sitemap.xml', root=STATIC_FILES_DIR, mimetype="text/xml; charset=utf-8")
예제 #10
0
def get_robotstxt():
    return bottle.static_file('robots.txt', root=STATIC_FILES_DIR)
예제 #11
0
def get_robotstxt():
    return bottle.static_file('favicon.ico', root=STATIC_FILES_DIR)
예제 #12
0
def handle_static(filepath):
    return bottle.static_file(filepath, root=settings.STATIC_PATH)
예제 #13
0
def handle_favicon():
    return bottle.static_file('images/favicon.ico', root=settings.STATIC_PATH)