Different url path just for one article (Django)

I need to change url path just for one chosen article. This is how it looks for all of my articles:


I would like to create some condition just for one chosen article. site.com/chosen-article

is it possible?


urlpatterns = [
    url(r'^articles/', include('mysite.articles.urls')),


You can create that separate url path in your articles urls:

url(r'^some-article', SomeArticleView.as_view(), name='some-article'),

In the SomeArticleView, just return the wanted article.

EDIT: To better match the question, the url and view should be:

url(r'^chosen-article', ChosenArticleView.as_view(), name='chosen-article')

Finally, it can be whatever we chose.