emencia / django-blog-lotus

A weblog application with Django.
https://django-blog-lotus.readthedocs.io/
MIT License
5 stars 1 forks source link

Mount article detail url at application root #55

Closed sveetch closed 1 year ago

sveetch commented 1 year ago

Is your feature request related to a problem? Please describe. Currently article detail view is mounted under path articles/, but it seems useless and not often wanted.

Describe the solution you'd like We would just mount article detail view at root and just changing this:

https://github.com/emencia/django-blog-lotus/blob/96f2d5b8ee96c8c8ddaa1c75a47ac187e57f8b9d/lotus/urls.py#L21

To remove articles/. However, in future, we may have a feature to not use the date path in detail url, so there can be conflits with other view path like categories or tags, for this we should have a slug blacklist (filled from settings) to check on when creating article.

Finally, the breadcrumbs part in view may have to be fixed for this new path resolution.

Describe alternatives you've considered This can be implemented also alike what have been described previously but with an optional settings to choose to use or not articles/ prefix for detail.

It does not really useful so i won't mind about it if it is too difficult (possibly report it for a next issue).

sveetch commented 1 year ago

Done in 0.5.3-pre.2, also the index view crumb titles can be customized from settings.

sveetch commented 1 year ago

v0.5.3-pre.3 fixes issues with admin and object with language that are not available anymore.