Facing Problem

9 views
Skip to first unread message

Anil Singh

unread,
Sep 10, 2022, 12:22:00 PM9/10/22
to Django users
Dear All
When i running our program then coming this type of error, what is solutions 

TypeError at /errorapi/insuranceDetails/get() missing 1 required positional argument: 'id'
Request Method:
GET
Request URL:
http://127.0.0.1:8000/errorapi/insuranceDetails/
Django Version:
2.1.7
Exception Type:
TypeError
Exception Value:
get() missing 1 required positional argument: 'id'
Exception Location:
/home/abcd/.local/lib/python3.8/site-packages/rest_framework/views.py in dispatch, line 502
Python Executable:
/usr/bin/python3
Python Version:
3.8.10
Python Path:
['/home/abcd/Desktop/error', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/abcd/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']
Server time:
Sat, 10 Sep 2022 09:41:27 +0000

pankaj palmate

unread,
Sep 10, 2022, 12:36:56 PM9/10/22
to django...@googlegroups.com
Hi Anil , you might need to pass Id In your view as argument

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d576d224-a636-41a2-98e3-17dd0a7f7edcn%40googlegroups.com.

Kasper Laudrup

unread,
Sep 10, 2022, 2:53:28 PM9/10/22
to django...@googlegroups.com
On 10/09/2022 12.00, Anil Singh wrote:
> Dear All
> When i running our program then coming this type of error, what is
> solutions
>

Hard to know since you haven't provided enough information for anyone to
help you.

Remember that no one has any idea what you are trying to achieve, what
your code looks like, if your code has worked and you just broke it etc.

Learn how to ask a good question if you want a good answer.

Kind regards,

Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages