django url pattern for

后端 未结 4 2008
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 14:26

In Django what is the url pattern I need to use to handle urlencode characters such as %20

I am using (?P[\\w]+) but this only handles alpha

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 14:55

    I was able to make it work using the configuration given below. Check if it will suit your needs.

    (?P[\w|\W]+)
    

提交回复
热议问题