Created
June 17, 2014 07:10
-
-
Save psachin/669ef49354eaf6721e5b to your computer and use it in GitHub Desktop.
Kavleen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index(request): | |
context=RequestContext(request) | |
# data=[] | |
categories=Category.objects.all() | |
for category in categories: | |
print "%s: %d percent" % (category, category.percent) | |
context_dict = { | |
'categories': categories, | |
} | |
return render_to_response('barchart/index.html',context_dict,context); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment