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

All Samples(15)  |  Call(6)  |  Derive(0)  |  Import(9)

src/f/l/flamejam-HEAD/scripts/seed-db.py   flamejam(Download)
 
from flamejam import db
from flamejam.models import User, Jam, Game, Rating, Comment, GameScreenshot
from datetime import datetime, timedelta
 
 
# Make jams
rgj1 = Jam("BaconGameJam 01", datetime.utcnow() - timedelta(days=30))
rgj2 = Jam("BaconGameJam 2", datetime.utcnow() - timedelta(days=2))
rgj3 = Jam("BaconGameJam 3", datetime.utcnow())
loljam = Jam("Test Jam", datetime.utcnow() - timedelta(days=3))

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
        else:
            if mode == "create":
                jam = Jam("", datetime.utcnow())
                db.session.add(jam)
 

src/f/l/flamejam-HEAD/flamejam/views/game.py   flamejam(Download)
from flamejam import app, db, mail
from flamejam.utils import get_slug
from flamejam.models import Jam, Game, User, Comment, GamePackage, \
    GameScreenshot, JamStatusCode, Rating
from flamejam.models.rating import RATING_CATEGORIES

src/f/l/flamejam-HEAD/scripts/init-db.py   flamejam(Download)
 
from flamejam import db
from flamejam.models import User, Jam, Game, Rating, Comment, GameScreenshot
from datetime import datetime, timedelta
 

src/f/l/flamejam-HEAD/flamejam/views/team.py   flamejam(Download)
from flamejam import app, db
from flamejam.models import Jam, Team, Invitation, JamStatusCode, User
from flamejam.forms import TeamSettingsForm, InviteForm, LeaveTeamForm
from flask import render_template, url_for, redirect, flash, request, abort
from flask.ext.login import login_required, current_user

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

src/f/l/flamejam-HEAD/flamejam/views/jams.py   flamejam(Download)
from flamejam import app, db
from flamejam.models import Jam, JamStatusCode, GamePackage
from flamejam.forms import ParticipateForm, CancelParticipationForm, TeamFinderFilter
from flask import render_template, url_for, redirect, flash, request
from flask.ext.login import login_required, current_user

src/f/l/flamejam-HEAD/flamejam/utils.py   flamejam(Download)
def get_current_jam():
    from flamejam.models import Jam, JamStatusCode
    next = None
    previous = None
    for jam in Jam.query.all():

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