0

I'm upgrading from Django==1.11 to Django==2.1 and i revise Django Rest Framework documentation and i can't solve this error.

This line of code:

urlpatterns = format_suffix_patterns(urlpatterns, allowed=['api', 'json', 'xml'])

show this error:

AttributeError: 'list' object has no attribute 'regex' 

Thanks in advance.

0 Answers0