Vamsi Krishna B
Vamsi Krishna B

Reputation: 11490

Python Indentation error

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

Answers (1)

t00ny
t00ny

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

Related Questions