def view_stats(request): """ Show AppEngine general stats """ countries = Country.all().filter("total >", 0).order("-total").fetch(250) #Get last stats stats = DeveloperStats.all().order("-timestamp").get() tags = TagStats.all().filter("developer_stats =", stats) tags = tags.order("-total").fetch(20) return render_to_response("stats/stats.html", {'stats': stats, 'countries': countries, 'tags': tags}, RequestContext(request))