Found the answer: 
http://stackoverflow.com/questions/11879416/pretty-and-seo-friendly-urls-in-django


On Saturday, June 22, 2013 8:10:07 PM UTC+2, thomaaaas wrote:
>
> Hello,
>
> In my index.html, I have something like this that displays a list of 
> drawings, with links to the drawings:
>
>     {% for drawing in latest_drawings_list %}
>         <li><a href="{% url detail drawing.id %}">{{ drawing.title 
> }}</a></li>
>     {% endfor %}
>
> When I look at the html generated, I see this type of url: <a 
> href="/drawing/4"> which is not SEO friendly.
> I'd like to have a url that looks like: /drawing/artiste_name/id
>
> How to do this? I need to modify urls.py? models.py? views.py?
> Thanks for your help! :)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to