valberg/django-view-decorator

Check view arguments against url arguments

valberg opened this issue · 0 comments

It would be cool if we could raise a check error if the view function doesn't have arguments matching the arguments given in the url path.

@view(paths="/foo/<int:bar>/", name="foo")
def foo(request):
    return "bar"

would result in a check error because bar isn't provided as an argument.

This would catch errors which would otherwise surface on runtime.