Obtain the first part of an URL from Django template

前端 未结 0 1412
栀梦
栀梦 2021-02-13 08:03

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

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