コード例 #1
0
def show_students_projects():
    """Shows a list of students and list of projects"""

    githubs = hackbright.get_students()
    projects = hackbright.get_projects()

    return render_template("homepage.html", githubs=githubs, projects=projects)
コード例 #2
0
def show_home():
    """Display homepage with list of students and list of projects"""
    student_rows = hackbright.get_students()
    project_rows = hackbright.get_projects()
    html = render_template("home.html",
                           student_rows=student_rows,
                           project_rows=project_rows)
    return html
コード例 #3
0
def index():
    """Displays the homepage with student and project names."""

    students = hackbright.get_students()
    projects = hackbright.get_projects()

    return render_template("index.html", students=students,
                                         projects=projects)
コード例 #4
0
def display_all():

    students = hackbright.get_students()
    projects = hackbright.get_projects()

    return render_template("homepage.html",
                           students=students,
                           projects=projects)
コード例 #5
0
def homepage():

    student_rows = hackbright.get_students()

    project_rows = hackbright.get_projects()


    return render_template("homepage.html", student_rows=student_rows, 
                                            project_rows=project_rows)
コード例 #6
0
def grade_student_project():

    students = hackbright.get_students()
    print students
    projects = hackbright.get_projects()

    return render_template("assign_grades.html",
                           students=students,
                           projects=projects)
コード例 #7
0
def show_homepage():
    """Display homepage."""
    # get all students from db (list of tuples with first name, last name)
    students = hackbright.get_students()

    # get all projects from db
    projects = hackbright.get_projects()

    return render_template("index.html",
                           all_students=students,
                           all_projects=projects)
コード例 #8
0
ファイル: hackbright-web.py プロジェクト: Vianey81/flask-sql2
def get_all_info():
    """Show main page.
    Make a homepage that has two lists – one for all students, and one for all projects. Both should be bulleted lists and both should be made up live links to the full student and project pages.

    """

    students = hackbright.get_students()
    projects = hackbright.get_projects()
    return render_template("home.html",
                           students=students,
                           projects=projects,
                           )
コード例 #9
0
def home():

    students = hackbright.get_students()

    projects = hackbright.get_projects()


    html = render_template("home.html",
                            students=students,
                            projects=projects)

    return html