![]() SortedList = sorted(teams, key=lambda a: a.get_score(game), reverse=True) Return sorted(teams, key=lambda a: a.get_score(game), reverse=True) Return HttpResponseRedirect(reverse('CTF:no_active_game')) Return super(specialScoreboard, self).dispatch(request, *args, **kwargs) Template_name = 'CTF/specialScoreboard.html'Ĭontext_object_name = dispatch(self, request, *args, **kwargs): Views.py class specialScoreboard(generic.ListView): Url(r'^specialScoreboardDiv/$', views.specialScoreboardDiv, name='specialScoreboardDiv'), Urls.py url(r'^specialScoreboard/$', _view(), name='specialScoreboard'), The page loads perfectly the first time just fails to refresh. Could someone enlighten the reason this is not working? I have used this: Refresh div using JQuery in Django while using the template systemĪs a reference to what I was doing. I keep getting 500 error when it tries to refresh the div, internal server error. I am trying to refresh the content of a table every few seconds in my HTML page using javascript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |