Gelonida N
unread,Jul 6, 2012, 5:25:24 AM7/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
I'd like to decorate all views in an include.
Let's take for example:
urlpatterns = patterns('',
url(r'^decorated_admin/', include(admin.site.urls)),
)
Is there any way to decorate all views in admin.site.urls
I was looking for a syntax similiar to:
urlpatterns = patterns('',
url(r'^webfw/admin/', include_and_decorate(admin.site.urls,
mydecorator)),
)
One use case would be for example to add authentification or specific
logging to an entire list of views.
Thanks in advance for any suggestions.