Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loaddata: Invalid model identifier #21

Open
marcazo opened this issue May 2, 2017 · 0 comments
Open

Loaddata: Invalid model identifier #21

marcazo opened this issue May 2, 2017 · 0 comments

Comments

@marcazo
Copy link

marcazo commented May 2, 2017

I am encountering the following error when I run the python manage.py loaddata fixtures/*:
Traceback (most recent call last):
File "manage.py", line 12, in
execute_from_command_line(sys.argv)
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/init.py", line 385, in execute_from_command_line
utility.execute()
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/init.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.dict)
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 61, in handle
self.loaddata(fixture_labels)
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 91, in loaddata
self.load_label(fixture_label)
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 142, in load_label
for obj in objects:
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/serializers/json.py", line 81, in Deserializer
six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/serializers/json.py", line 75, in Deserializer
for obj in PythonDeserializer(objects, **options):
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/serializers/python.py", line 93, in Deserializer
Model = _get_model(d["model"])
File "/home/brian/mysiteenv/local/lib/python2.7/site-packages/django/core/serializers/python.py", line 158, in _get_model
raise base.DeserializationError("Invalid model identifier: '%s'" % model_identifier)
django.core.serializers.base.DeserializationError: Problem installing fixture '/home/brian/mysite/fixtures/conference.json': Invalid model identifier: 'symposion_conference.conference'

I am using Python 2.7.12 and Django 1.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant