Could you tell me how to add the .html suffix to the django route?

I use django2.0

the default route access address is http://host/blog/1/

.

I wish it could be http://host/blog/1.html

is there any way to achieve this?

I"ve been searching the Internet for a long time, and I don"t know how to solve it

Jun.08,2021

r'^ blog/ (\ d +)\ .html'

Menu