<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-03-09 9:21 GMT+01:00 Eloi <span dir="ltr"><<a href="mailto:eloi@openmailbox.org" target="_blank">eloi@openmailbox.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2017-03-08 15:30 GMT+01:00 Eloi <<a href="mailto:eloi@openmailbox.org" target="_blank">eloi@openmailbox.org</a>>:<br>
Dear list,<br>
How can I update the layers thumnails in GeoNode?<br>
Only by removing the layer and adding it again (by running: python manage.py updatelayers)?<br>
</blockquote></blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2017-03-08 16:05, Simone Dalmasso wrote:<br>
Hi, from the layer detail page you can set a new thumbnail with the background.<br>
</blockquote>
<br>
I tried to this but it didn't workout.<br></blockquote><div><br></div><div>If you don't see errors in the console then it should work and is just matter of cleaning the browser's cache.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
to trigger an update programmatically you can trigger a layer save.<br>
</blockquote>
<br>
How can I do that? It is a console command?<br></blockquote><div><br></div><div>in python (script or shell):</div><div><br></div><div>>>> from geonode.layers.models import Layer</div><div>>>> for layer in Layer.objects.all(): layer.save() </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance!<br>
<br>
Cheers,<br>
<br>
Eloi<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/geonode-users</a><br>
</blockquote></div><br>hope it helps<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div></div>