Fied relative path for denali
This commit is contained in:
parent
3f7b4f3a57
commit
c6a8af1a06
@ -17,7 +17,7 @@ def llpsi():
|
|||||||
|
|
||||||
@app.route('/latin/llpsi/<path:pensum_id>')
|
@app.route('/latin/llpsi/<path:pensum_id>')
|
||||||
def pensum(pensum_id):
|
def pensum(pensum_id):
|
||||||
filename = 'app/templates/Pensa/' + pensum_id + '.html'
|
filename = 'templates/Pensa/' + pensum_id + '.html'
|
||||||
with open(filename, 'r') as file:
|
with open(filename, 'r') as file:
|
||||||
return render_template('LLPSI/Pensum_cloze.html', pensum_title=pensum_id.replace('_', ' '), pensum_content=file.read())
|
return render_template('LLPSI/Pensum_cloze.html', pensum_title=pensum_id.replace('_', ' '), pensum_content=file.read())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user