摘要:
url(r'^firstcontent/'+str(date)+'/(?P<first_body_id>\d+)/$', views.firstcontent, name='firstcontent'), url(r'^cepingcontent/'+str(date)+'/(?P<ceping_b 阅读全文
posted @ 2017-08-17 16:15
金牛小子
阅读(198)
评论(0)
推荐(0)
摘要:
在你定义的views.py中修改 Models.objects.order_by("-pub_date") 更据时间排列 Models.objects.order_by("-id") 也可以更剧id排列 者样就能将最新的文章显示在前面了,而以前的文章就会往后排 阅读全文
posted @ 2017-08-17 14:02
金牛小子
阅读(371)
评论(0)
推荐(0)

浙公网安备 33010602011771号