Hello,
I'm trying to perform a data batch import to GeoNode with the django command
"geonode_import".
I execute this command with virtual environment activated: python manage.py
geonode_import <data_path>
and I keep getting this error:
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File
"/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/__init__.py",
line 438, in execute_manager
utility.execute()
File
"/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py",
line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py",
line 218, in execute
output = self.handle(*args, **options)
File
"/var/www/geonode/wsgi/geonode/src/GeoNodePy/geonode/maps/management/commands/geonode_import.py",
line 26, in handle
upload(path, opts['user'], opts['overwrite'], opts['keywords'].split())
NameError: global name 'upload' is not defined
Is this the correct way to use this command? Can you explain what I'm doing
wrong?
Thanks
Simone