[jhayw...@cmlnxbld01 invdb]$ python manage.py shell Python 2.7 (r27:82500, Dec 2 2010, 14:06:29) [GCC 4.2.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import models Traceback (most recent call last): File "<console>", line 1, in <module> File "/home/jhayward/invdb/models.py", line 50, in <module> class architecture(models.Model): File "/tools/python/2.7/Linux_x86_64/lib/python2.7/site-packages/django/db/models/base.py", line 48, in __new__ kwargs = {"app_label": model_module.__name__.split('.')[-2]} IndexError: list index out of range >>>
What is going on in this error message? It occurred after I went through and added docstrings, __str__(), and __unicode__() methods; I get the same error, referring to the same class, when I go through and comment out the docstring and __str__() and __unicode__() methods. What are the likely causes, and what can I do to fix this? -- [image: Christos Jonathan Hayward] <http://jonathanscorner.com/> Christos Jonathan Hayward, an Orthodox Christian author. Author Bio <http://jonathanscorner.com/author/> • Books<http://cjshayward.com/> • *Email <christos.jonathan.hayw...@gmail.com>* • Facebook<http://www.facebook.com/christos.jonathan.hayward> • LinkedIn <http://www.linkedin.com/in/jonathanhayward> • Twitter<http://twitter.com/JonathansCorner> • *Web <http://jonathanscorner.com/>* • What's New?<http://jonathanscorner.com/> I invite you to visit my "theology, literature, and other creative works" site. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.