How to redirect ?page=1 to / in Django paginations?

前端 未结 0 1203
鱼传尺愫
鱼传尺愫 2021-02-10 00:02

I am a little confused why my view code does not work. I need to redirect whenever /?page=1 to just /

My view:

blogs = models.BlogPost.objects.filter(is_ac         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题