from bottle import run, get, post, request, redirect from bottle import TEMPLATE_PATH, jinja2_template as template import bottle import pymongo app = bottle.app() TEMPLATE_PATH.append("./templates") @app.route('/') def index(): return template("index.html") @app.route('/post', method=['POST']) def getimg(): img = request.forms.get('img'); name = request.forms.get('name'); conn=pymongo.Connection()
{{#tags}}- {{label}}
{{/tags}}