我是 Django 的新手,所以如果这个问题很无聊,我很抱歉。我想格式化从 GET 接收到的 Django url,如下所示:
example.com/search?title=Test&city=London&category=SomeCategory
example.com/search?title=&city=London&category=SomeCategory
example.com/search?title=&city=&category=SomeCategory
进入这个:
example.com/search/Test/London/SomeCategory
example.com/search/post/London/SomeCategory
example.com/search/post/city/SomeCategory
做这个的最好方式是什么?提交此表单的外观如何?
谢谢!