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

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

src/f/l/flamejam-HEAD/flamejam/views/index.py   flamejam(Download)
from flamejam import app
from flamejam.utils import get_current_jam
from flamejam.models import Jam
from flask import render_template, url_for, redirect
 
@app.route("/")
def index():
    jam = get_current_jam()

src/f/l/flamejam-HEAD/flamejam/views/misc.py   flamejam(Download)
from flamejam import app, db, mail, cache
from flamejam.models import Jam, User, Team, Game, JamStatusCode
from flamejam.utils import get_current_jam
from flask import render_template, request, url_for, redirect, flash, jsonify
from werkzeug.exceptions import *
def current_jam_info():
    jam = get_current_jam()
    return jsonify(slug=jam.slug,
                   title=jam.title,
                   announced=str(jam.announced),