aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 16:59:52 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 16:59:52 -0400
commit6dede725fce32d3fcc8f1dcdb730e2ef94f2ba3a (patch)
tree8be1e753dbf2df8ebd3f226a5955fc0113502bf6 /famille.py
parent150fb1b5a79e49e6dedff69b7ec8c16d8bc53d1b (diff)
downloadfamille-flask-6dede725fce32d3fcc8f1dcdb730e2ef94f2ba3a.tar.gz
add an empty articles section
Diffstat (limited to 'famille.py')
-rw-r--r--famille.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/famille.py b/famille.py
index d03b5ad..55fff38 100644
--- a/famille.py
+++ b/famille.py
@@ -205,6 +205,11 @@ def view_user(user_id):
user = query_db('SELECT * FROM users WHERE id= ?', (user_id,), True)
return render_template("user/show.html", user=user)
+@app.route('/articles/')
+@login_required
+def articles():
+ return render_template("articles/list.html")
+
@app.route('/user/edit/', methods=['GET', 'POST'])
@login_required
def edit_user():