が失敗します。エラーが表示されます。これはエラーです:Djangoシェルでモデルクラスを定義すると、
>>> from django.db import models
>>> class Poll(models.Model):
... question = models.CharField(max_length=200)
... pub_date = models.DateTimeField('date published')
...
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "D:\Python25\lib\site-packages\django\db\models\base.py", line 51, in __new__
kwargs = {"app_label": model_module.__name__.split('.')[-2]}
IndexError: list index out of range
私は何ができますか?
http://stackoverflow.com/questions/2215403/exception-when-trying-to-install-django-treebeard-based-on-instructions – pyfunc
その場所でmodel_module .__ name__を印刷してみましょう。 – pyfunc