Display the results. On Aug 2, 1:37 pm, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 2 août, 19:22, lmcadory <ljmcad...@gmail.com> wrote: > > > I'm having this problem, my web design knowledge is limited and I'm > > having a hard time searching for the solution (if there is one) > > > The problem is this: > > > I have a view that counts the number of lines in a file. It then > > pushes that result to an html page. > > Uh ? What does that mean exactly ? (the "pushes that result to an html > page" part) > > > What I want it to do is when that > > line count changes when I press the refresh button on the browser it > > displays the new number. Right now I have to reload the server to > > display the results. > > You shouldn't, so chances are you did something wrong (like putting > the code that computes the lines count at the module top-level or > something alike), but it's hard to tell exactly without looking at > your code. > > > > > I, if I'm asking the question correctly, is there a way I can tell the > > view to run again and republish the results? > > The view function is called each time you reload the corresponding > url.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.