I update the django distribution quite regularly and recently I get an
unexpected error.
Let's suppose I'm using the settings.py file from the cheeserater code
(the django website recently launched with source code available). At
the IDLE startup I write the following:
>>> import os, sys
>>> os.environ['DJANGO_SETTINGS_MODULE'] = 'cheeserater.settings'
>>> sys.path.append("C:\\")
(The cheeserater package is under the C drive.)
Then, these really basic statements give me this error:
>>> from django.db import models
>>> class Person(models.Model):
pass
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
class Person(models.Model):
File "C:\Python25\lib\site-packages\django\db\models\base.py", line
50, in __new__
new_class._meta.app_label = model_module.__name__.split('.')[-2]
IndexError: list index out of range
Can anyone help?
Thanks and regards
Francesco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---