jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
982 stars 106 forks source link

Feature proposal: dev management command for listing URLs #159

Open David-Guillot opened 1 year ago

David-Guillot commented 1 year ago

Hi there,

@Contexte we're happily using django-hosts, it fits our use case perfectly.

There is one thing that could be better for us: before integrating django-hosts in our codebase, we were often using django-extensions' show_urls management command, to get, as developers, a full view of all possible URLs of our website. But now of course, this command is only listing our main hosts URLs, and it's not possible for us to get the same feature for other hosts than the main one.

@hramezani would you find it useful to have a management command like hosts_show_urls (--host=whatever) that would do about the same? If so, my team is willing to contribute a PR about it (in the next few weeks/months) :wink:

hramezani commented 1 year ago

Hi @David-Guillot ,

Agree, this can be a nice thing to add. Please remember to not add an dependency(like django-extensions) for this management command.

David-Guillot commented 1 year ago

Thank you, we'll let you know :wink: