id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 25907 Alternative Way of Specifying URL Patterns Sven R. Kunze nobody "Other frameworks (like MVC 5) provide an inline-way of specifying the URL pattern for a view. Would it be possible to introduce such thing for Django? Internally, we are working on something like this in order to accelerate development and maintenance for our production system. Manually looking up URLs in the url.py and then jump to the actual view class is quite error-prone and tedious. Internally, we evaluate two alternatives: 1) via class attribute: url 2) via decorator on class {{{ # alternative 1 class ThingView(DetailView): url = '/thing(?P\d+)' template_name = 'thing.html' # alternative 2 @url('/thing/(?P\d+)'): class ThingView(DetailView): template_name = 'thing.html' }}} " New feature closed Core (URLs) dev Normal wontfix tzanke@… Unreviewed 0 0 0 0 0 0