Closed stilet closed 5 years ago
Q1:
TypeError: url() missing 1 required positional argument: 'view'
which version of Django are you using?
Q2:
url(ProductListView.as_view(
serializer_class=CustomizedProductSerializer,
)),
...
are there any special reasons, you want to hard code the Catalog's List view into your routes, I usually do it through my CMS pages.
Q1:
TypeError: url() missing 1 required positional argument: 'view'
which version of Django are you using?
Q2:
url(ProductListView.as_view( serializer_class=CustomizedProductSerializer, )), ...
are there any special reasons, you want to hard code the Catalog's List view into your routes, I usually do it through my CMS pages.
Django version: 1.11.20 from https://github.com/awesto/cookiecutter-django-shop There's no reason to do it that way. I need to display the article field in Catalog List and I do the documentation. Sorry for my English )
can I close this?
in doc:
and add in url.py
I get an error File "/web/garantum/urls.py", line 31, in
webapp_1_d116d9535b47 | serializer_class=CustomizedProductSerializer,
webapp_1_d116d9535b47 | TypeError: url() missing 1 required positional argument: 'view'
my code in garantum/serializers.py:
url.py
Could not add the product_code field to the product list