How Can I Send Data From One Django Application To Another? May 25, 2024 Post a Comment Here is my issue. I need to send a form from one Django application to another (on separate machines). Taking into consideration line breaks, this is how I post my data. Solution 1: I think you can send data in better ways, for example by using an HTML form to directly send data to the destination server, etc.Anyway your approach to mix data with the URL in the urllib2.urlopen line is very bad, and of course you'll lose line breaks and many other characters. You should encode your data before adding it to the URL, like this: Baca JugaWhy The Model Is Training On Only 1875 Training Set Images If There Are 60000 Images In The Mnist Dataset?Get Information Out Of Sub-lists In Main List ElegantlyFilling Out Web Form Data Using Built-in Python Modulesencoded_data = urllib.urlencode({'content': 'Hello,\nIt is a sample content!'}) url = urllib2.urlopen('http://192.168.56.2:8000/api/comp/?' + encoded_data) Copy Share You may like these postsHow To Get All Tasks And Periodic Tasks In CeleryAdditional Field In Django FormRun Django Project Inside Wordpress (on Suburl Of Wordpress Using Apache And Mod_wsgi)Django, How Does Models.py Under Auth Folder Create Initial Tables When You Migrate Very First Time? Post a Comment for "How Can I Send Data From One Django Application To Another?"
Post a Comment for "How Can I Send Data From One Django Application To Another?"