On Fri, May 15, 2009 at 3:58 PM, Antoni Aloy <[email protected]> wrote:

>
> 2009/5/15 MohanParthasarathy <[email protected]>:
> >
> > Hi,
> >
> > I am very new to django. I am following along the tutorial. But I want
> > to be able to parse the URL which has the following form:
> >
> > http://example.com/data/?ui=2&shva=1#label&name=xxxx/fetch
> >
> > From what I can tell, i can't match the whole thing using the url
> > pattern. I can parse up till "http://example.com/data"; and the rest in
> > the code. Where can i find examples/tutorials for the above format ?
>
> You can capture the parameters in your  view with request.GET (see
> http://docs.djangoproject.com/en/dev/ref/request-response/)


> or you can rethink your application urls so they could be as:
> http://example.com/data/2/1#label/xxxx/fetch
> so they could match
> ^data/(?P<ui>\d+)/(?P<shva>\w+)/(?P<name>\w+)/(?P<option>)/$
>

Ok, I will try this format.

-thanks
mohan


> hope it helps.
>
>
> --
> Antoni Aloy López
> Blog: http://trespams.com
> Site: http://apsl.net
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to