Hi!
I'm facing an issue reversing a dotted path with django 1.9.4. Here are more details.
I pass a dotted path to the django template tag "url":
"{% url 'my.app.view.func' arg %}"
And the function "my.app.view.func" has a decorator which is using "arg". My problem is : when displaying my template, I get a NoReverseMatch error.
But I don't have any error:
- when I use the name of the url (defined in my urls.py file) or
- when I use the dotted path and remove my (simple) decorator.
I know that passing a dotted path to url is deprecated since django 1.8 [0][1], but not removed yet. So, I think there is something wrong with dotted path and decorators, but I can't find what…
PS: my decorator only redirects to another view…
Thanks,
François
[0]
https://docs.djangoproject.com/en/1.8/releases/1.8/#passing-a-dotted-path-to-reverse-and-url
[1]
https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#url