NewsBlur/apps/statistics/views.py

9 lines
364 B
Python
Raw Normal View History

from django.template import RequestContext
from django.shortcuts import render_to_response
from apps.statistics.models import MStatistics
def dashboard_graphs(request):
statistics = MStatistics.all()
return render_to_response('statistics/render_statistics_graphs.xhtml', {
'statistics': statistics,
}, context_instance=RequestContext(request))