[Answer]-How to attach decorators to include in urls.py?

1👍

There isn’t a straight forward way to do this. The url pattern that uses include has no access to the view to decorate it.

You could try writing a modified version of include that decorates any included url patterns. This might be tricky, because the included url patterns could use include again.

Leave a comment