Archived from the Transloadit support forum. Originally posted on March 6, 2012; details may be outdated, see our docs for current behavior. Original thread
Hello people, i’m in charge of our account right now. We’re using Django for our site. My question is, how can we use transloadit on our development machines, maybe there’s some sort of mock, or something. The problem is that we can’t use “localhost” as redirect URL.
Also, let me know if this flow of the Python SDK is correct:
- Render the form to the user. The form has multiple fields, including his “profile picture” that will be stored on transloadit.
- The user submits the form TO US. I mean, the form action is to our server.
- We fetch the result, make our cleaning and comprobation of fields, and if everithin goes well store the picture on some temporal bucket.
- Using the python SDK we issue the request, something like:
client = Client(AUTH_KEY, AUTH_SECRET)
params = {
‘steps’: {
':original': {
'robot': '/http/import',
'url': 'http://tmp.ourserver.com/the_id_of_the_tmp_img.py'
}
}, ‘template_id’: ‘our_template_id’ }
5. Wait for your response
6. Your response arise, we update our database, and returns to client.
Is this ok?
Thanks!