Get id from path variable url Django

后端 未结 0 1206
名媛妹妹
名媛妹妹 2020-12-21 15:48

I want my end-point to be like api/units/:id so to pass the id as path variable

I have writeen the following code

urlpatterns:
path(\'api         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题