[Answer]-Django: call index function on page reload

1👍

Well, that really is not how it works. Each view is separate and is only called from the URLs that map to it. If you have shared code, you probably want to either factor it out into separate functions that you can call from each view, or use something like a template tag or context processor to add the relevant information to the template automatically.

Leave a comment