i have django view displays info associated model , grabs info web app via rest api.
to this, @ moment overriding get_context_data
function so:
def get_context_data(self, **kwargs): context = super(listprojectsview, self).get_context_data(**kwargs) context['issues'] = phab.get_recent_issues() # call phabricator api recent issues
this causes page take 5-10s load, unacceptable.
is there way can display page while calling external api in background , updating view when data available??
even better, there way can poll external api @ regular interval , automatically update page? dont need rely on user refreshing page latest data...
Comments
Post a Comment