Saturday, September 10, 2022

Re: Facing Problem

Hi Anil , you might need to pass Id In your view as argument

On Sat, 10 Sep, 2022, 9:51 pm Anil Singh, <seobeanilsingh@gmail.com> wrote:
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

--
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+unsubscribe@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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPyMU1LawtH5WPCkiir%3DPiQEUcXz1MV_37a__dAZRNm%3DqR7NFg%40mail.gmail.com.

No comments:

Post a Comment