I say minor but I changed the model name in the fixture as it gave me the following error:
default: Operations to perform:
default: Apply all migrations: sites
default: Running migrations:
default: Applying sites.0001_initial...
default: OK
...
default: Applying sessions.0001_initial...
default: OK
default: Traceback (most recent call last):
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/apps/config.py", line 169, in get_model
default: return self.models[model_name.lower()]
default: KeyError: 'projectstates'
default:
default: During handling of the above exception, another exception occurred:
default:
default: Traceback (most recent call last):
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/python.py", line 192, in _get_model
default: return apps.get_model(model_identifier)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/apps/registry.py", line 205, in get_model
default: return app_config.get_model(model_name, require_ready=require_ready)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/apps/config.py", line 172, in get_model
default: "App '%s' doesn't have a '%s' model." % (self.label, model_name))
default: LookupError: App 'main' doesn't have a 'projectstates' model.
default:
default: During handling of the above exception, another exception occurred:
default:
default: Traceback (most recent call last):
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/pyyaml.py", line 79, in Deserializer
default: for obj in PythonDeserializer(yaml.load(stream, Loader=SafeLoader), **options):
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/python.py", line 99, in Deserializer
default: Model = _get_model(d["model"])
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/python.py", line 194, in _get_model
default: raise base.DeserializationError("Invalid model identifier: '%s'" % model_identifier)
default: django.core.serializers.base.DeserializationError: Invalid model identifier: 'main.projectstates'
default:
default: During handling of the above exception, another exception occurred:
default:
default: Traceback (most recent call last):
default: File "manage.py", line 22, in <module>
default: execute_from_command_line(sys.argv)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
default: utility.execute()
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/__init__.py", line 356, in execute
default: self.fetch_command(subcommand).run_from_argv(self.argv)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/base.py", line 283, in run_from_argv
default: self.execute(*args, **cmd_options)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/base.py", line 330, in execute
default: output = self.handle(*args, **options)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/commands/loaddata.py", line 69, in handle
default: self.loaddata(fixture_labels)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/commands/loaddata.py", line 109, in loaddata
default: self.load_label(fixture_label)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/management/commands/loaddata.py", line 166, in load_label
default: for obj in objects:
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/pyyaml.py", line 85, in Deserializer
default: six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/utils/six.py", line 685, in reraise
default: raise value.with_traceback(tb)
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/pyyaml.py", line 79, in Deserializer
default: for obj in PythonDeserializer(yaml.load(stream, Loader=SafeLoader), **options):
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/python.py", line 99, in Deserializer
default: Model = _get_model(d["model"])
default: File "/var/www/hackspace-foundation-sites/vagrant-env/lib/python3.4/site-packages/django/core/serializers/python.py", line 194, in _get_model
default: raise base.DeserializationError("Invalid model identifier: '%s'" % model_identifier)
default: django.core.serializers.base.DeserializationError: Problem installing fixture '/var/www/hackspace-foundation-sites/main/fixtures/ProjectStates.yaml': Invalid model identifier: 'main.projectstates'
default: BEGIN
default: ERROR: relation "flourish_tables" already exists
default: ERROR: current transaction is aborted, commands ignored until end of transaction block
default: invalid command \.
default: ERROR: syntax error at or near "aliases"
default: LINE 1: aliases
default: ^
default: BEGIN
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: COMMIT
default: BEGIN
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: ALTER TABLE
default: COMMIT
I say minor but I changed the model name in the fixture as it gave me the following error: