Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: requests issue with post on dot_net api
Post: requests issue with post on dot_net api

Hi, my code is trying to upload a file and a data field to a .net API but I am getting an error (see below's output). User enters the data and file via a web form (using django web framework). ...
Heinrich Web Scraping & Web Development 1 2,473 Jan-22-2020, 08:18 PM
    Thread: Radio button in form
Post: RE: Radio button in form

Dah! I found my silly mistake. variable in forms.py do not match variable names in view **smile** **biggrin** **biggrin** **biggrin**
Heinrich Web Scraping & Web Development 1 2,053 Jan-14-2020, 05:41 PM
    Thread: Radio button in form
Post: Radio button in form

Hi, I have a small web app which simply takes input via a form and executes a http POST request with the values entered to API. this is my forms.py rom django import forms CHOICE = [('true', 'True'...
Heinrich Web Scraping & Web Development 1 2,053 Jan-14-2020, 04:26 AM
    Thread: How to process JSON response from requests?
Post: RE: How to process JSON response from requests?

That is true. But requests' json method cannot handle it in my case similar to standard lib json. However, simplejson can. Since simplejson is a bit "advanced" eventually at some point json and reques...
Heinrich General Coding Help 5 4,026 Jan-10-2020, 06:17 PM
    Thread: How to process JSON response from requests?
Post: RE: How to process JSON response from requests?

Thank you for pointing this out! Good catch! That indicates that the JSON which is returned to me by the API is incorrectly formatted? I tried the following. Using simplejson instead of json module....
Heinrich General Coding Help 5 4,026 Jan-09-2020, 04:50 PM
    Thread: How to process JSON response from requests?
Post: How to process JSON response from requests?

try: message_to_clientsservice = { 'id': id_id, 'name': 'create-member-client-for-tenant-setup', 'payload': { 'c...
Heinrich General Coding Help 5 4,026 Jan-09-2020, 03:25 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020