You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a view is not a function, privatebeta can't get its __name__:
File "privatebeta/middleware.py", line 45, in process_view
full_view_name = '%s.%s' % (view_func.__module__, view_func.__name__)
AttributeError: 'MyFeed' object has no attribute '__name__'
In my case MyFeed is a subclass of django.contrib.syndication.views.Feed and the corresponding URL rule is:
(r'^myfeed/$', MyFeed())
The text was updated successfully, but these errors were encountered:
If a view is not a function, privatebeta can't get its
__name__
:In my case
MyFeed
is a subclass ofdjango.contrib.syndication.views.Feed
and the corresponding URL rule is:The text was updated successfully, but these errors were encountered: