Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread Ted Thomas
Jonathan, anotherdjangonewby, Thanks. I tried both suggestions, but there in no change in behavior. No matter what I do, the development server only takes requests at 127.0.0.1:8000. I am including my settings.py file below ( with altered secret_key): """ > Django settings

How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
I am developing a django application that primarily uses web browsers to upload scientific data that includes some image files. Currently, the application works fine when Firefox or Chrome are used. Both images and other data are correctly uploaded. Occasionally users need to upload larger am

Re: How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
My Python code started working after I changed on line. Changing: files_dct = {filename:fobj} to: files_dct = {('photo',(filename, fobj,'image/jpg'))} Now it works. My conjecture about the need for different HTTP-headers was wrong. The working code has not changed the headers receive