[GeoNode-users] How can I update the layers thumnails in GeoNode?
Simone Dalmasso
simone.dalmasso at gmail.com
Thu Mar 9 00:28:55 PST 2017
2017-03-09 9:21 GMT+01:00 Eloi <eloi at openmailbox.org>:
> Hi,
>
> 2017-03-08 15:30 GMT+01:00 Eloi <eloi at openmailbox.org>:
>>> Dear list,
>>> How can I update the layers thumnails in GeoNode?
>>> Only by removing the layer and adding it again (by running: python
>>> manage.py updatelayers)?
>>>
>>
> On 2017-03-08 16:05, Simone Dalmasso wrote:
>> Hi, from the layer detail page you can set a new thumbnail with the
>> background.
>>
>
> I tried to this but it didn't workout.
>
If you don't see errors in the console then it should work and is just
matter of cleaning the browser's cache.
>
> to trigger an update programmatically you can trigger a layer save.
>>
>
> How can I do that? It is a console command?
>
in python (script or shell):
>>> from geonode.layers.models import Layer
>>> for layer in Layer.objects.all(): layer.save()
> Thanks in advance!
>
> Cheers,
>
> Eloi
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
hope it helps
--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170309/3e121027/attachment.html>
More information about the geonode-users
mailing list