Message from Python discussions

December 2018

— Okay then, what you've got to do is first just remove the else, it doesn't make sense to have replicated code

Message permanent page


Second, does locals return this structure?
context = {
'form1': form,
'form2': form2,
'form3': form3,

— I did it

— You did what

— This

— Nice, then

— I saw this on how to use locals in django views

Message permanent page

— Those variables should be accesible in that data that javascript holds but i don't really know the behaviour of the page. Do you expect it to reload?

Message permanent page

— You should instead maybe use variables in the template

— I use pagination django and in template and I have only one part of the database, but I need to search all

Message permanent page

— Yeah, you have to make a query

— Do you need to refresh the page?