Def usercenter (user_id):3. Passing parameters to the front-end page4. The page displays the corresponding dataAll questions and Answers releasedAll comments PostedPersonal information5. Each page links to a personal center{% extends ' base.html '%}{% block title%} Personal Center {% Endblock%} {% block head%}Linkrel= "stylesheet"type= "Text/css"href= "{{url_for (' static ', filename= ' Css/detail.css ')}}
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing param
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing param
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing param
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing param
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing param
(' Sent ', Backref=db.backref (' comments ', order_by=creat_time.desc)) author = db.relationship (' User ', backref=db.backref (' comments '))Show number of comment bars{{Ques.comments|length} h4 > Comments: ({{sen.comments|length}})h4>Page layouts for personal centers (HTML files and corresponding style files). The page displays the corresponding dataAll questions and Answers releasedAll comments PostedPersonal informationHtml{% extends ' inde
}} the - -{% ENDFOR%} -3. Show number of comment bars{{Ques.comments|length}}1 Divclass= "List-group-item"style= "margin-top:30px;width:800px;">2 H1>Name:Small>{{User.username}}Small>H1>3 H1>Number of questions:Small>{{Questions|length}}Small>H1>4 H1>Number of comments:Small>{{Comment|length}}Small>H1>5 Div>4. Complete the Perso
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing parameters
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing parameters
discuz X3 Space Theme List Picture presentation mode, Discuz realization of personal space Theme list call picture mode, Discuz home Picture ListIf you need to implement this rendering, we need to first understand the discuz cover picture storage principle:Discuz does not have a topic list cover path in the data table,
The second key: You must have a "personal list", that is, you must list everything you have to do this year.
Now, we need to list all the goals you want to accomplish. This is not only the main goal, but also the achievement of some small goals.
When you have a "personal
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing param
Personal space at the end of the big return: the hands of the C currency to take. Activity has started on 15th, thank you very much for your support and active participation, personal space of all the staff in this wish everyone good luck, I hope you can get a daily C money into the community bank.
Welcome to the winners to their own bank to check whether the amount to account, if there are any questions ca
, "szerorecords": "No Data retrieved",//"Ssearch": '
Two application scenarios for Jquery.datatables Plug-ins
Scenario One: The server takes out all the data at once, and the data is processed entirely by the client. At this point "bserverside": false,
Service-Side code:
Public Jsonresult Getarchivesjson (jqdatatableparameter tableparam)
{
#region 1 Scene one
////1. Get all articles
/ /list
Scenario Two: server-side processing pagin
Show All comments{% for Foo in ques.comments%}
All comments SortedUquestion = db.relationship (' Question ', backref=db.backref (' comments ', order_by=creat_time.desc))
Show number of comment bars{{Ques.comments|length}}
Complete the Personal center
1. Personal Center page layout (HTML files and corresponding style files)2. Define the View function Def usercenter (user_id):3. Passing parameters
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.