def article_all(request): """Shows all articles""" # Get all articles. articles = Article.all() # We order all articles from newer to older. articles.order('-publish_date') c = {'articles': articles} # Deal with login. _user_manage(c) # Required for the POST method form. c.update(csrf(request)) c['form'] = {'action': '/article/new/'} return render_to_response("list.html", c)