Message from Python discussions

December 2018

— I saw this on how to use locals in django views
https://stackoverflow.com/questions/25063328/django-using-locals

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?

— 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?

— You're right

— No

— Because i use ajax

— Ok, mmm then rendering the whole template is not an option

— You should separate templates

— And reload the part that you want to render again