Re: Preventing illegal method calls

2014-09-15 Thread Jagger
Thank you, Ben! 2014. szeptember 15., hétfő 6:45:42 UTC+2 időpontban Ben Scherrey a következőt írta: > > This is the nature of the HTTP protocol and RESTful architectural style. > Understand that a URI is just an address for a resource - it is not an > action or command. The HTTP verbs are the

Re: Preventing illegal method calls

2014-09-14 Thread Benjamin Scherrey
This is the nature of the HTTP protocol and RESTful architectural style. Understand that a URI is just an address for a resource - it is not an action or command. The HTTP verbs are the actual commands. So which HTTP verb you send determines what action you want to occur on that resource. This mean

Preventing illegal method calls

2014-09-13 Thread Jagger
Hi Everyone! My question is how can I prevent illegal method calls in django web application. For example, take a method that updates the data of ExampleModel: def examplemodel_changeform(request, examplemodel_id): #Here is the source code of model updating... Clicking on the submit button,