On Sun, May 1, 2011 at 1:34 PM, doniyor <doniyor....@googlemail.com> wrote:
> hi There,
>
> i am novice in django so i need your help, i read books but if i talk
> to you guys, may be i get it faster than reading books.
>
> so, what doesnot give me peace is that i dont understand the function
> resolve and how to use it.
>
> say, i want to get the view from this request: /s/?
> o=logo&switch=S&plz=&dist=10&Dein_Studium=6&firmenname=&p_id=254/
> what i dont understand is that resolve needs a path, but i cannot get
> a path from this request, because it has only /s/ as a path and i
> cannot call a view function for this /s/ path.
>
> view, args, kwargs = resolve(' /s/?
> o=logo&switch=S&plz=&dist=10&Dein_Studium=6&firmenname=&p_id=254/ ')
> kwargs['request'] = request
> return view(*args, **kwargs)
>
> i dont understand how this works,
>
> can some help me please ?
>
> Thanks

Have you considered consolidating some of those querystring parameters
into a more concise URL hierarchy? One of the benefits of using
prettier URLs is better usage of Django's URL handling tools.

-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy

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

Reply via email to