[GeoNode-users] backup error, geonode 2.6 => backup.py=> import error: no moduled named simplejson

Simone Dalmasso simone.dalmasso at gmail.com
Thu Apr 27 04:50:22 PDT 2017


Hi Federico,

there seems to be an issue in the commands, simplejson is not available
anymore, json has to be used. we should fix it.
@afabiani, is that correct?

https://github.com/GeoNode/geonode/blob/2.6.x/geonode/base/management/commands/restore.py#L28
https://github.com/GeoNode/geonode/blob/2.6.x/geonode/base/management/commands/backup.py#L26

2017-04-27 12:11 GMT+02:00 Federico Gianoli <alpacagis at gmail.com>:

> Dear all,
>
> I would like to create a backup of my geonode project and I am using this
> guide: http://docs.geonode.org/en/master/tutorials/admin/backup_restore/
>
> From my django admin page (Base => backups) I tried to do a backup, but,
> when I run the backup, on a fully writable folder (777), there is this
> server error:
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> I have double checked the settings.ini file, and I have noted that the
> configuration file is not yet update for the 2.6 version, it has these
> lines:
>
> #Migrate from GN 2.4 to GN 2.4
> migrations = base.resourcebase,layers.layer,layers.attribute,maps.
> map,maps.maplayer
> manglers   = gn24_to_24.ResourceBaseMangler,gn24_to_
> 24.LayerMangler,gn24_to_24.LayerAttributesMangler,gn24_
> to_24.DefaultMangler,gn24_to_24.MapLayersMangler
>
> Is it correct? Have I to change these lines accordingly to the 2.6
> version? (e.g. gn26_to_26.ResourceBaseMangler ...)?
>
> When I try to run the backup from command line there is the following
> error about the file backup.py
>
> import error: no moduled named simplejson
>
> How can I solved this issue?
>
> Tanks a lot
>
> Federico
>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170427/15b589e3/attachment.html>


More information about the geonode-users mailing list