Bringing Locality of Behaviour to Django Views and URLs

See Should the show_urls command be part of Django's standard library? — there’s an open accepted ticket, with what looks like a good amount of community support, to add such a management command already. (If you wanted to add that quickly, it could likely make it for Django 5.0 :racing_car:)

The issue (here) with such a command (which we should add independently) is it’s not editable, so you’re still digging down to the relevant view file, and moving views (or adjusting imports) to change the ordering.

I agree that once you’ve got includes and what not it gets complicated. But it gets complicated anyway. My take, my experience, is that the unified patterns list helps to manage this, whereas the decorator pattern makes it worse. (I accept I can’t force you to agree to that last point. :blush:)

1 Like