tags:

views:

43

answers:

1

Hi all, 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 :)

+3  A: 

I think you'll have to rename it. 'class' is a keyword in python.

http://docs.python.org/reference/lexical_analysis.html#keywords

t00ny