Obtain the first part of an URL from Django template

前端 未结 0 1163
抹茶落季
抹茶落季 2021-02-13 07:47

I use request.path to obtain the current URL. For example if the current URL is \"/test/foo/baz\" I want to know if it starts with a string sequence, let\'s say /te

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