예제 #1
0
파일: views.py 프로젝트: gmist/solostyle
def index():
    informers = Informer.query()
    form = InformerForm()
    if form.validate_on_submit():
        informer = Informer()
        form.populate_obj(informer)
        informer.put()
        return redirect(url_for('informer.admin.index'))
    return render_template(
        'informer/admin/index.html',
        form=form,
        informers=informers
    )
예제 #2
0
파일: menu.py 프로젝트: gmist/solostyle
def get_right_side():
    informers = Informer.query(Informer.is_public == True)
    return render_template("j_env/right_side.html", informers=informers)