Hi,

The tutorial has no mention of renderer_class but has renderer_classes (note 
the extra ES at the end).

Regards,
Xavier.

> Le 16 nov. 2017 à 14:17, YUN TANG <ntutang...@gmail.com> a écrit :
> 
> I've been following the official tutorial until 6-viewsets-and-routers/ 
> <http://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/>
> 
> After I changed the urls.py to
> 
> router = DefaultRouter()
> router.register(r'snippets', views.SnippetViewSet)
> router.register(r'users', views.UserViewSet)
> 
> # The API URLs are now determined automatically by the router
> # Additionally, we include the login URLs for the browsable API.
> urlpatterns = [
>     url(r'^', include(router.urls)),
> ]
> 
> I got an error: 
> TypeError: SnippetViewSet() received an invalid keyword 'renderer_class'
> 
> 
> Please help. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-rest-framework+unsubscr...@googlegroups.com 
> <mailto:django-rest-framework+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to