Search code examples
pythonajaxdjangodajaxice

In Dajaxice (Django), how do you specify a GET vs a POST?


It seems in Dajaxice that everything is a POST. I've read that it's not good practice to mix up GET and POST and I think I know when to use which one.

So how do I specify a GET request in Dajaxice?


Solution

  • You can see that here

    GET method is defined in registration decorator:

    @dajaxice_register(method='GET')