Open tony opened 13 years ago
thanks, it looks like it is having difficulty finding the "Words" class in models.py. If the class is there you might want to make sure you don't have a pathing issue, see if this works:
$ python manage.py shell
from wordconfuse.models import Words
I am able to load this class via the shell. I'm a n00b at django still, is there a place I should try to add this in my settings to have this work?
After adding it to settings.py, which may or may not be right, I'm told I don't have DJANGO_SETTINGS_MODULE
Hey! Hope you're well! Splendid project if I do say so myself :)
https://github.com/jarv/wordconfuse/commit/202c088b2a0946433b0d12a2d902b19d350a9a31#fixtures/initial_data.json
tony@general:1~/src/django_projects/words/wordconfuse 10:06 AM|$> ls bin defs.pyc forms.py init.py models.py README templates urls.py views.py defs.py fixtures forms.pyc init.pyc models.pyc static tests.py urls.pyc views.pyc
tony@general:1~/src/django_projects/words/wordconfuse 10:06 AM|$> python ../manage.py loaddata fixtures/initial_data.json
Problem installing fixture 'fixtures/initial_data.json': Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 169, in handle for obj in objects: File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/json.py", line 35, in Deserializer for obj in PythonDeserializer(simplejson.load(stream), **options): File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/python.py", line 84, in Deserializer Model = _get_model(d["model"]) File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/python.py", line 141, in _get_model raise base.DeserializationError(u"Invalid model identifier: '%s'" % model_identifier) DeserializationError: Invalid model identifier: 'wordconfuse.Words'
Is there any debug info I can give you to be more helpful?