博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
评论列表显示及排序,个人中心显示
阅读量:6995 次
发布时间:2019-06-27

本文共 1895 字,大约阅读时间需要 6 分钟。

@app.route('/usercenter/
')def usercenter(user_id): user = User.query.filter(User.id == user_id).first() context = { 'username': user.username, 'wenda': user.wenda, 'comments': user.comment } return render_template('usercenter.html',**context)
{% block switchbody %}
{% for foo in wenda %}
{% endfor %}
{% endblock %}
{% extends 'switch.html' %}{% block usercentertitle %}个人中心{% endblock %}{% block usercenterhead %}{% endblock %}{% block switchbody %}    

转载于:https://www.cnblogs.com/lianghaohui123/p/8030139.html

你可能感兴趣的文章