Mercurial > kraina_muminkow
view frontend/mfrontend/views/frontend.py @ 1:c3fb1e9fc1f7
(none)
author | michalr |
---|---|
date | Tue, 22 Feb 2011 18:10:18 +0000 |
parents | |
children | 79fc37fe85a6 |
line wrap: on
line source
from flask import Module from mfrontend import db frontend = Module(__name__) @frontend.route('/') def index(): lol = db.query_db('select id, username, password from users') return lol[0]['username']