<div dir="ltr">I use the following scripts to batch upload documents and secure them in 2.4.x - <a href="https://gist.github.com/sopac/2ef0a2cbdf50a21d25af">https://gist.github.com/sopac/2ef0a2cbdf50a21d25af</a><div><div><br></div><div>S.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 1:56 AM, Nic Tait <span dir="ltr"><<a href="mailto:ngtait@gmail.com" target="_blank">ngtait@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Paolo, <span style="font-size:12.8px">I have been experimenting with the Document model as a way to do this with some success so far</span><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">- Nic</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 7:40 AM, Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do something like this (not tested):<br>
<br>
from geonode.documents.models import Document<br>
<br>
doc_list = [<br>
    {'title': 'title0', 'doc_file': '/path/to/file/0'},<br>
    {'title': 'title1', 'doc_file': '/path/to/file/1'},<br>
    {'title': 'title2', 'doc_file': '/path/to/file/2'},<br>
]<br>
<br>
owner = Profile.objects.all()[0] # change according to your needs<br>
<br>
for doc in doc_list:<br>
    doc = Document(<br>
        title = doc['title'],<br>
        doc_file = doc['doc_file'],<br>
        owner = owner<br>
    )<br>
    doc.save()<br>
<br>
hope it helps<br>
p<br>
<div><div><br>
On Tue, Oct 6, 2015 at 3:12 PM, Nic Tait <<a href="mailto:ngtait@gmail.com" target="_blank">ngtait@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> Would like to be able to use Geonode as a map catalog for a large number of<br>
> pdf / png files but not sure of the best way to do this in bulk?  Cannot see<br>
> anything in the documentation to do this so wondering if I need to create a<br>
> python script using the django models - has anyone done anything similar ?<br>
><br>
> Thanks,<br>
> Nic<br>
><br>
</div></div><div><div>> _______________________________________________<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="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
><br>
<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>