Django: How can I include the output of one view in another? -


When a user visits mysite.com/articles, they see me a list of several articles

How do I add this list to another page, e.g. Home page, but so much that I can still add additional content on the home page? This list of articles will be displayed only on those 2 pages, so the custom tag looks like overkill.

Thanks

Re-enter the list of articles in a separate function, then Call that scene from both scenes.

But a custom tag is actually a suitable solution for it.


Comments