Lephe
d3f137b92d
Not tested yet since there is a lack of tools to manipulate comments, topics and programs. The /programmes routes is used to display a list of all programs, temporarily.
9 lines
224 B
Python
9 lines
224 B
Python
from app import app, db
|
|
from app.models.program import Program
|
|
from app.utils.render import render
|
|
|
|
@app.route('/programmes')
|
|
def program_index():
|
|
programs = Program.query.all()
|
|
return render('/programs/index.html')
|