[GeoNode-users] New Install of GeoNode (Centos7) - error on loaddata step
Ivan Terry
ivanterry1 at gmail.com
Tue Feb 6 06:46:55 PST 2018
Hi,
New to GeoNode/Django. I'm following the instructions here:
http://docs.geonode.org/en/latest/tutorials/install_and_admin/setup_on_centos/install_geonode.html
and when I get to the "Initialize Geonode" step:
cd /opt/apps/geonode/geonode/python manage.py migratepython manage.py
loaddata geonode/base/fixtures/initial_data.json
When I run manage.py migrate nothing happens, then when I run loaddata I
get the following error:
$ python manage.py loaddata geonode/base/fixtures/initial_data.json
Traceback (most recent call last):
File "manage.py", line 29, in <module>
execute_from_command_line(sys.argv)
File
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line
354, in execute_from_command_line
utility.execute()
File
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line
346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 445, in execute
output = self.handle(*args, **options)
File
"/usr/lib/python2.7/site-packages/django/core/management/commands/loaddata.py",
line 60, in handle
self.loaddata(fixture_labels)
File
"/usr/lib/python2.7/site-packages/django/core/management/commands/loaddata.py",
line 90, in loaddata
self.load_label(fixture_label)
File
"/usr/lib/python2.7/site-packages/django/core/management/commands/loaddata.py",
line 141, in load_label
for obj in objects:
File "/usr/lib/python2.7/site-packages/django/core/serializers/json.py",
line 85, in Deserializer
six.reraise(DeserializationError, DeserializationError(e),
sys.exc_info()[2])
File "/usr/lib/python2.7/site-packages/django/core/serializers/json.py",
line 79, in Deserializer
for obj in PythonDeserializer(objects, **options):
File
"/usr/lib/python2.7/site-packages/django/core/serializers/python.py", line
96, in Deserializer
Model = _get_model(d["model"])
File
"/usr/lib/python2.7/site-packages/django/core/serializers/python.py", line
168, in _get_model
raise base.DeserializationError("Invalid model identifier: '%s'" %
model_identifier)
django.core.serializers.base.DeserializationError: Problem installing
fixture
'/opt/apps/geonode/geonode/geonode/base/fixtures/initial_data.json':
Invalid model identifier: 'base.topiccategory'
Any help would be much appreciated!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180206/f0d8f04b/attachment-0001.html>
More information about the geonode-users
mailing list