news-feed

Django-way for building a “News Feed” / “Status update” / “Activity Stream”

狂风中的少年 提交于 2019-11-27 09:35:53
问题 I'd like to create a reusable Django app that handles status updates of the Users. Much like facebook's "news feed". Use cases includes, for example: A Professor can create an Assignment due to an specific date and every student can see on the news feed that the assignment was created, with a short description, the date that it's due and a link to see the full description . He also can upload a new PDF that he finds interesting for his students. On the news feed, the info regarding this

How to force a script reload and re-execute?

…衆ロ難τιáo~ 提交于 2019-11-26 11:45:38
I have a page that is loading a script from a third party (news feed). The src url for the script is assigned dynamically on load up (per third party code). <div id="div1287"> <!-- dynamically-generated elements will go here. --> </div> <script id="script0348710783" type="javascript/text"> </script> <script type="javascript/text"> document.getElementById('script0348710783').src='http://oneBigHairyURL'; </script> The script loaded from http://oneBigHairyURL then creates and loads elements with the various stuff from the news feed, with pretty formatting, etc. into div1287 (the Id "div1287" is