KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
when I use the Django shell, it shows an error; this is the error: >>> 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 What can I do?
Tags (comma-separated)
Save Edits
Cancel