Reputation: 11490
I have created a project called class , and an application called students when I write views, I have to use
items = class.objects.all()
which is giving me error :( please tell me way to overcome the error without changing my project name..
Thanks :)
Upvotes: 0
Views: 139
Reputation: 1648
I think you'll have to rename it. 'class' is a keyword in python.
http://docs.python.org/reference/lexical_analysis.html#keywords
Upvotes: 3