RSS from template
This commit is contained in:
parent
abc6d04a0a
commit
81d60c9df2
1 changed files with 4 additions and 0 deletions
|
|
@ -134,3 +134,7 @@ def delete(id):
|
||||||
db.execute('DELETE FROM post WHERE id = ?',(id,))
|
db.execute('DELETE FROM post WHERE id = ?',(id,))
|
||||||
db.commit()
|
db.commit()
|
||||||
return redirect(url_for('blog.index'))
|
return redirect(url_for('blog.index'))
|
||||||
|
|
||||||
|
@bp.route('/rss/', methods=('GET',))
|
||||||
|
def redirect_rss():
|
||||||
|
return render_template('rss.xml')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue