Re: How to send parameters in url tag?

2016-09-20 Thread Ares Ou
Hi, You have to use a form of keyword arguments to provide parameters in {% url %} tag. For example, {% url post_view post_id=post_id %} the former post_id is the argument name in your view function, the latter post_id is the variable name in your template context. If you have more than one

Re: How to send parameters in url tag?

2016-09-20 Thread Alessandro Madruga Correia
> > {%url url_name url_params%} > > where url_params as 'pk=object.id' or 'page=page.number' > Here have an example https://docs.djangoproject.com/en/1.10/topics/http/urls/#reverse-resolution-of-urls -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://counter.li.org]