— This is like an exclusive or.. sort of
— Https://hastebin.com/ayacevopey.py I did as in the example, but the page does not change
— You maybe have to redo your ajax function filling the success part, i don't know,
— Also mind you are only sending two variables, not all your locals
— Check both javascript console and django debug console
— Nice, What does the js console say? What variables are received in that response?
— I don't understand that error :D