from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required
urlpatterns = patterns('',
url(r'^home/', login_required(include('home.urls'))),
)
'tuple' object is not callablehow to fix this?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a0a93906-ce10-4b46-bb7a-67aa8d458a6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
from home.urls import urlpatterns as home_urls
url('^home/', include(list(login_required(x) for x in home_urls)))