[GeoNode-users] Settings for migration scripts
Benjamin Ducke
benducke at fastmail.fm
Fri Jul 8 02:56:26 PDT 2016
Hi Simone,
My "settings.py" already has a defition
of "ANONYMOUS_USER_ID". But your pointer
provided me with the right idea.
The script works if I use the following
in "gn_migration.cfg":
[path]
geonode_path = /usr/local/lib/python2.7/dist-packages/geonode/
settings_path = geonode.settings
This works for a plain 2.4 install from
the official Ubuntu packages. Maybe adding
to the migration docs?
Cheers,
Ben
On 08/07/16 09:08, Simone Dalmasso wrote:
> Hi, you can add this to your settings
> https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L406
>
> 2016-07-08 8:53 GMT+02:00 Benjamin Ducke <benducke at fastmail.fm
> <mailto:benducke at fastmail.fm>>:
>
> Dear All --
>
> I am in the process of migrating a GeoNode 2.0 instance to GeoNode
> 2.4.
>
> I am following the instructions here:
> https://github.com/capooti/geonode/blob/migration_from20_to_24/scripts/migrations/migrate20to24/index.rst
>
> ... and I have downloaded the migration scripts mentioned on the
> page above.
>
> At the last step, "create_auth_group_and_update_res.py" throws this
> error message:
>
> django.core.exceptions.ImproperlyConfigured: In order to use
> django-guardian's ObjectPermissionBackend authorization backend you
> have to configure ANONYMOUS_USER_ID at your settings module
>
> I assume that the problem is a wrong setting in the "[path]" section
> of "gn_migration.cfg"
>
> My current settings are:
>
> [path] geonode_path =
> /usr/local/lib/python2.7/dist-packages/geonode/ settings_path =
> geonode.local_settings
>
> What would be the correct settings for a GeoNode installation on
> Ubuntu 14.04 using the official packages?
>
> Thanks and best,
>
> Ben _______________________________________________ geonode-users
> mailing list geonode-users at lists.osgeo.org
> <mailto:geonode-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
>
> -- Simone
--
Dr. Benjamin Ducke
{*} Geospatial Consultant
{*} GIS Developer
Spatial technology for the masses, not the classes:
experience free and open source GIS at http://gvsigce.org
More information about the geonode-users
mailing list