I have a flash file which calls a url like: http://test.com/savethis/123456/
I just want my view to save “123456” in the database and return nothing.
After saving the values what do I do? If I redirect it it changes the page and that’s bad. I could render a page, but I don’t want to. I just want it to end and not throw any errors.
Make sure your URLConf points to your desired view function, and write something like:
The empty HttpResponse at the end there sends back a status code of 200 OK so that the browser or other server that connects to your endpoint knows the request was completed.