Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/f/l/flamejam-HEAD/flamejam/views/admin.py   flamejam(Download)
from flamejam import app, db, admin_permission, mail
from flamejam.utils import get_slug
from flamejam.models import User, Jam, Game
from flamejam.forms import JamDetailsForm, AdminWriteAnnouncement, AdminUserForm
from flask import render_template, redirect, url_for, request, flash
def admin_user(username):
    user = User.query.filter_by(username = username).first_or_404()
    form = AdminUserForm(obj=user)
 
    if form.validate_on_submit():