Message from Python discussions
December 2018
— I know that it is not advisable to do so
Okay then, what you've got to do is first
just remove the else, it doesn't make sense to have replicated code
— 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
https://stackoverflow.com/questions/25063328/django-using-locals
— 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?
— 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
— Yeah, you have to make a query