error:
09:11 ~/rssDj/rssReader $ python rssReader.py
Traceback (most recent call last):
File "rssReader.py", line 21, in <module>
from models import FreqWord, WordIds, PrimaryData
File "/home/kernie_xvid/rssDj/rssDjApp/models.py", line 3, in <module>
class FreqWord(models.Model):
File "/usr/local/lib/python2.7/site-packages/Django-1.3.3-py2.7.egg/django/db/models/base.py", line 52, in __new__
kwargs = {"app_label": model_module.__name__.split('.')[-2]}
IndexError: list index out of range
code of script:
...some imports...
sys.path.append('/home/kernie_xvid/rssDj')
sys.path.append('/home/kernie_xvid/rssDj/rssDjApp')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from models import FreqWord, WordIds, PrimaryData
code of models:
from django.db import models
class FreqWord(models.Model):
word = models.CharField(max_length=64)
freq = models.IntegerField()
wordId = models.CharField(max_length=64)
checkDate = models.DateTimeField()
et c.