I want transmit a GET parameters 'pk' to django rest-framework.
Browser
but in my view.py I was setting my GET method to receive ‘pk’ parameters.
views.py
It's urls.py code:
and There is another one question,if I models object use 'objects' method in the pycharm,were throw an exception,such as:
but my friend was not happen this exception. He use pycharm 2017.4(macOS)
cateloydata = category.objects.all()
my pycharm version:pycharm 2017.2 python version 3.6 django version 1.11.7
Thank everyone.
and I'm sorry, I need at least 10 reputation to post images. So my question composing is very bad.
感谢!



