<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Simone,</p>
<p><br>
</p>
<p>and thank you for your answer.</p>
<p>Sorry for my trivial question:</p>
<p><br>
</p>
<p>in my setting.py I have already geonode.contrib.geosites</p>
<div><br>
</div>
in GEONODE_CONTRIB_APPS, see below:
<div><br>
<div>
<div>GEONODE_CONTRIB_APPS = (</div>
<div> # GeoNode Contrib Apps</div>
<div> 'geonode.contrib.dynamic',</div>
<div> 'geonode.contrib.exif',</div>
<div> 'geonode.contrib.favorite',</div>
<div> 'geonode.contrib.geogig',</div>
<div> 'geonode.contrib.geosites',</div>
<div> 'geonode.contrib.nlp',</div>
<div> 'geonode.contrib.slack'</div>
)</div>
<div><br>
</div>
<div>in INSTALLED_APPS I have:</div>
<div><br>
</div>
<div>
<div>INSTALLED_APPS = (</div>
<div><br>
</div>
<div> # Boostrap admin theme</div>
<div> # 'django_admin_bootstrapped.bootstrap3',</div>
<div> # 'django_admin_bootstrapped',</div>
<div><br>
</div>
<div> # Apps bundled with Django</div>
<div> 'django.contrib.auth',</div>
<div> 'django.contrib.contenttypes',</div>
<div> 'django.contrib.sessions',</div>
<div> 'django.contrib.sites',</div>
<div> 'django.contrib.admin',</div>
<div> 'django.contrib.sitemaps',</div>
<div> 'django.contrib.staticfiles',</div>
<div> 'django.contrib.messages',</div>
<div> 'django.contrib.humanize',</div>
<div> 'django.contrib.gis',</div>
<div><br>
</div>
<div> # Third party apps</div>
<div><br>
</div>
<div> # Utility</div>
<div> 'pagination',</div>
<div> 'taggit',</div>
<div> 'friendlytagloader',</div>
<div> 'geoexplorer',</div>
<div> 'leaflet',</div>
<div> 'django_extensions',</div>
<div> # 'haystack',</div>
<br>
</div>
<div><span style="font-size: 12pt;">....and others...</span><br>
</div>
<div><br>
</div>
<div>Should I insert geonode.contrib.geosites somewhere in local_setting? or it's already ok as it? or copy <span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">geonode.contrib.geosites
in settings.py under INSTALLED_APPS?</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Sorry again for this banal question...</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">E.</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <simone.dalmasso@gmail.com><br>
<b>Inviato:</b> luned́ 19 dicembre 2016 09.04<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> geonode-users@lists.osgeo.org<br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</font>
<div> </div>
</div>
<div>
<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" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<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">Simone </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>