Is there any built-in or 3rd party app for custom styled urls?
I'd like to have custom urls such as:
example.com/article-type/article-name-2015-24-12
Where article-type would be a created from a foreign key and at the end of the url there would be the published date.
And in templates I'd call them using {% url 'article' article.pk %}. (So in the future when my boss decides to change the url structure I don't have to change it everywhere)
Is there anything like that? If not could anyone kick me to the right direction how to implement a such feature?
{% url 'article' article.pk %}it would be something like{% url 'article' article.name article.date %}or better yet, have a slug on theArticlemodel and make sure it is unique then you can just use the slug as such{% url 'article' article.slug %}