<div dir="ltr">Ciao Eugenio,<div><br></div><div>sorry for being so late in the response.</div><div><br></div><div>You have to add 'geonode.contrib.geosites' to your INSTALLED_APPS in order to get the command.</div><div><br></div><div>In case you get errors in running that command, you can always 'make' a geosite by yourself by copying the folder 'site_template' and changing it's name and internal parameters and then register the new Site in the admin panel. You can follow the utils.py add_site function and replicate the needed steps (some of them are only for production).</div><div>Take also some time to see how the pre and post settings work.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Hope this helps</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">2016-12-19 8:55 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-6773632688027657663m_-5701824888878642882divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi everyone,</p>
<p><br>
</p>
<p>regarding the multi-tenancy setting up and in particular the installation of new site since the command:</p>
<p>python manage.py addsite sitename sitedomain</p>
<p><br>
</p>
<p>return me:</p>
<p></p>
<div>Unknown command: 'addsite'</div>
<div>Type 'manage.py help' for usage.</div>
<br>
<p></p>
<p>Do you know way? Have I 'activate' in some way the multi-tenancy before? or it is ready to use?</p>
<p>If it is ready to use, why 'addsite' is an unknown command?</p>
<p>I launched the command from the main geonode directory, am I right?</p>
As I wrote in the previous email in my installation I have only manage.py file in 
<div>/geonode directory.</div>
<div><br>
</div>
<div>I'm testing on on ubuntu 14.04 and geonode is at version <span>2.4.dev20151029170512.</span></div>
<div><span></span>I installed geonode as custom installation (not by apt-get).</div>
<div><br>
</div>
<div>Thanks</div><span class="m_-6773632688027657663HOEnZb"><font color="#888888">
</font></span><div><span class="m_-6773632688027657663HOEnZb"><font color="#888888"> <br>
Eugenio<br>
</font></span><div style="color:rgb(0,0,0)"><div class="m_-6773632688027657663hm m_-6773632688027657663HOEnZb">
<hr style="display:inline-block;width:98%">
<div id="m_-6773632688027657663m_-5701824888878642882divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>><br>
<b>Inviato:</b> venerdì 16 dicembre 2016 15.04<br>
<b>A:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Multi-Tenancy: how to start</font>
<div> </div>
</div></div><div><div class="m_-6773632688027657663h5">
<div>
<div id="m_-6773632688027657663m_-5701824888878642882divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p><br>
</p>
<p>as pointed in the email object I want to try the geonode multi-tenancy capabilities.</p>
<p>I started of course from the documentation [1] and [2], but a need some hints to start.</p>
<p><br>
</p>
<p>I have already a running geonode instance. Do you think I should start from </p>
<p>a clean geonode installation or I can arrange the running one?</p>
<p><span style="font-size:12pt">Is there somewhere a set of commands to setup the geosite 1, geosite 2, ...</span><br>
</p>
<p><span style="font-size:12pt">I was looking into geosites folder, as suggested in [2], but I don't see neither manage.py nor manage_all.py files.</span></p>
<p><span style="font-size:12pt">I tried python manage.py addsite geosite1 geosite1domain</span></p>
<p><span style="font-size:12pt">but I got <span>Unknown command: 'addsite'</span></span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">Am I missing something?</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">After that: How can I sort out the already stored layers?</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p>Thank you very much for hints and for the patience of this stupid questions, </p>
<p><br>
</p>
<p>Eugenio</p>
<p><br>
</p>
<p>[1] <a href="https://geonode.readthedocs.io/en/2.0/tutorials/admin/multi-tenancy.html" class="m_-6773632688027657663m_-5701824888878642882OWAAutoLink" id="m_-6773632688027657663m_-5701824888878642882LPlnk387680" target="_blank">https://geonode.readthedoc<wbr>s.io/en/2.0/tutorials/admin/<wbr>multi-tenancy.html</a></p>
<p>[2] <a href="https://github.com/GeoNode/geonode/tree/master/geonode/contrib/geosites" class="m_-6773632688027657663m_-5701824888878642882OWAAutoLink" id="m_-6773632688027657663m_-5701824888878642882LPlnk766724" target="_blank">https://github.com/GeoNode<wbr>/geonode/tree/master/geonode/<wbr>contrib/geosites</a></p>
<br>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-6773632688027657663gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div></div>