Re: converting CURL command

2022-08-21 Thread Ryan Nowakowski
In the past I've used subprocess.run to shell out and run curl. Those were weird circumstances though. Typically I use the requests library instead. On August 21, 2022 2:27:02 PM PDT, "lone...@gmail.com" wrote: >Hello all, > > I am interested in converting the CURL command of: > >curl 'https:

Re: converting CURL command

2022-08-21 Thread Sebastian Jung
https://reqbin.com/req/python/c-xgafmluu/convert-curl-to-python-requests Am So., 21. Aug. 2022 um 23:27 Uhr schrieb lone...@gmail.com < loneso...@gmail.com>: > Hello all, > >I am interested in converting the CURL command of: > > curl 'https://www.walmart.com/chcwebapp/api/receipts' \ -H 'sec-

converting CURL command

2022-08-21 Thread lone...@gmail.com
Hello all, I am interested in converting the CURL command of: curl 'https://www.walmart.com/chcwebapp/api/receipts' \ -H 'sec-ch-ua: "Chromium";v="98", " Not A;Brand";v="99", "Google Chrome";v="98"' \ -H 'accept: application/json' \ -H 'Referer: https://www.walmart.com/receipt-lookup' \ -H

Re: DeleteView Class

2022-08-21 Thread Ryan Nowakowski
It looks like you can override the delete method to get rid of the redirect behavior: http://ccbv.co.uk/projects/Django/4.0/django.views.generic.edit/DeleteView/#delete On August 20, 2022 2:39:46 AM CDT, Hussein Ahmad wrote: >hi.. i dont want my delete button to redirect to a success url,how c

Re: i have issue in serializer foreign key relations

2022-08-21 Thread user8234
Can you explain how is your data or database schema, your model is based on a ORM design?, I mean that you probably need to check API token validation El dom., 21 de agosto de 2022 12:23 p. m., Shams Ulhaq < ulhaqshams...@gmail.com> escribió: > i have a code that have multiple relation for gettin

Re: page index.html

2022-08-21 Thread user8234
Hello touitou2...@gmail.com,. If you are using a framework web then a "static files" path should be defined or located in the root folder then maybe is not rendering *nothing*. El dom., 21 de agosto de 2022 12:23 p. m., REMY TOUITOU < touitou2...@gmail.com> escribió: > Hello ,thank you for your h

i have issue in serializer foreign key relations

2022-08-21 Thread Shams Ulhaq
i have a code that have multiple relation for getting data i need someone who can help me in getting data in serializer -- 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 em

Re: page index.html

2022-08-21 Thread REMY TOUITOU
Hello ,thank you for your help , it doesn't work yet project.urls.py and the firstapp urls.py are two diffeérents pages ? I don't arrive to make appear this two differents pages on isualcode , how can i do this? Le jeu. 18 août 2022 à 23:06, hajar Benjat a écrit : > did you make it right (what a

DeleteView Class

2022-08-21 Thread Hussein Ahmad
hi.. i dont want my delete button to redirect to a success url,how can i do that this is my code: class ChatMessageDeleteView(LoginRequiredMixin, generic.DeleteView, UserPassesTestMixin): model = ChatMessage # success_url = '' def test_func(self): message = self.get_object()