AoA, I am trying to redirect to view with parameters but unable to get the parameters
here is the code, it is working fine if I use (r'^search/$',... ) instead
url.py
url(r'^search/\?item=(?P<item_id>\d+)/$', 'contacts.views.search_Page', name='search_view'),
views.py
def search_Page(request,item_id): #GET Method
return redirect('home_view')
it gives me no error, but django unable to find the page or view(404 page), why?
Using the URLconf defined in TestApp.urls, Django tried these URL patterns, in this order:
^$
^home/$ [name='home_view']
^logout/$
^save/$
^edit/$
^create/$
^account/$
^callback$ [name='callback']
^profile/$ [name='profile_view']
^search/\?item=(?P<item_id>\d+)$ [name='search_view']
^get/(?P<article_id>\d+)/$
^static\/(?P<path>.*)$
The current URL, search/item=4, didn't match any of these.