[BangPypers] Django url patterns help

Gora Mohanty gora at mimirtech.com
Fri Mar 1 13:09:33 CET 2013


On 1 March 2013 17:31, Bhimsen Kulkarni <bhimsen.pes at gmail.com> wrote:
> your regex is r'^my_page/(?P<btn>.* but your search string ("
> /my_page/?btn=view_page&sel=Profile") begins with "/". According to your
> regex, search string must begin with "my_page".

That is not the problem: url(r'^my_page/$'...) will match
http://example.com/my_page . The issue is that in Django,
urlpattern matches the path, and not the querystring.

Regards,
Gora


More information about the BangPypers mailing list