def worship1(): worship = Worship(name='Worship Test', week_day='sunday', schedule='09:00', pastor='Abriran Abilu') worship.put() return worship
def edit(id): method = 'POST' action = '.' worship = Worship.get_by_id(id) form = WorshipForm(request.form, worship) if form.validate_on_submit(): worship = Worship.get_by_id(id) form.populate_obj(worship) worship.put() flash('Worship updated!') return render_template("worships/edit.html", form=form, method=method, action=action)
def new(): method = 'POST' action = '.' form = WorshipForm(request.form) if form.validate_on_submit(): worship = Worship() form.populate_obj(worship) worship.put() flash('Worship created!') return redirect(url_for('.index')) return render_template("worships/new.html", form=form, method=method, action=action)
def index(): worships = Worship.query() return render_template("worships/index.html", worships=worships)
def worships(): worships = Worship.all() return render_template("site/worships.html", worships=worships)
def worship1(): worship = Worship(name='Worship Test',week_day='sunday', schedule='09:00',pastor='Abriran Abilu') worship.put() return worship
def index(): worships = Worship.query() return render_template("worships/index.html",worships=worships)