All correct :)

On Sat, Sep 3, 2011 at 3:28 AM, Tomas Neme <lacrymol...@gmail.com> wrote:

> I'll still answer this just in case. You should have the following in
> your urls.py:
>
> urlpatterns += (......,
> url(r'(P<type>)\w+/(P<id>)\d+/(P<slug>)\[w-]+/', your_view,
> name='yoururlname'), ....)
>
> and then you can have in your template
>
> <a href="{% url yoururlname type=n.type id=n.id slug=n.slug %}">{{
> n.title }}</a>
>
>
> I hope I didn't make any mistakes.
>
> tomas
>
>
> --
> "The whole of Japan is pure invention. There is no such country, there
> are no such people" --Oscar Wilde
>
> |_|0|_|
> |_|_|0|
> |0|0|0|
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny
> (")_(") to help him gain world domination.
>
> --
> 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.
>
>

-- 
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