I'm trying to use this URL pattern:
(r'^welcome/(?P.+)/$', 'welcome'),
开发者_JAVA技巧
to match URL like this:
http://localhost:9000/welcome/http://google.com/
but to my surprise, I found the value of next turned out to be:
http:/google.com/
It seems that double slashes are somehow compressed into one slash.
Why django behave like this and is there workaround?
This Django ticket might get you going in the right direction: https://code.djangoproject.com/ticket/14346
also: Diggbar modrewrite- How do they pass URLs through modrewrite?
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论