我使用下面的代码和歌厅一些压痕问题压痕问题
from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.question
我歌厅以下错误
File "E:\Softwares\Django-1.1.1.tar\.py", line 7
def __unicode__(self):
^
IndentationError: unexpected indent
,并找出一个好方法是用'蟒蛇-tt'运行该脚本。 – 2010-01-21 07:11:34
thnaks.I使用你的答案解决了问题 – user223541 2010-01-21 08:38:04
不客气。 :-) @Ignacio:感谢您添加好的提示! – 2010-01-21 10:03:30