<div dir="ltr">ok:<div>- I this that that Alias is a mistake, the way is configured is that any url /gemex will internally point to /dati but I don't think they are actually urls. You can remove it</div><div><br></div><div>- you can assign a new name to WSGIProcessGroup</div><br>- it ok to keep the dir in the root base of geonode since your site is inside<div><br></div><div>- the geonode apt package creates the uploaded and static root under var/www as far as I know. It is ok to reuse the same settings. If not I suggest you to put them there as they are meant to be served by apache.</div><div><br></div><div>- you can use the same config for the Daemon, just use the name you gave to the WSGIProcessGroup instead of geonode</div><div><br></div><div><br></div><div><br></div><div>This is a brief explanation but you can find more on the static url and roots on the django docs and more on the wsgi config on the apache docs</div><div><br></div><div>hope this helps.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-20 9:36 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_3184959846751756924divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi Simone and all,</p>
<p><br>
</p>
<p>thanks again for your inputs.</p>
<p>However, I think I'm at a crucial position to finalize the configuration of the first new geosite (named gemex).</p>
<p>Just to clarify all the step performed and to focus the stage where I'm now, I list here below what I did and what I miss:</p>
<p><br>
</p>
<p></p>
<ol>
<li>in setting.py I added under INSTALLED_APPS the line 'geonode.contrib.geosites'</li><li>I run python manage.py syncdb</li><li>I copy site-template (i.e. the folder inside contrib/geosites/) in the same position (i.e. contrib/geosites/) with a new name (e.g. gemex in my case)</li><li>I created a 4 level doman to be linked to the new site (i.e. <a href="http://gemex.igg.cnr.it" target="_blank">gemex.igg.cnr.it</a> in my case)</li><li>I added a new site from the admin panel available from a normal running installation</li><li>I create a new virtual host (for apache2) by copy the virtual host I had for the normal running installation. Here what is clear to me are the items:
<ul>
<li>ServerName = where I put the created 4 level domain</li><li>WSGIScriptAlias where I put the link to the wsgi.py available within the created newsite (i.e. path to contrib/geosites/gemex/wsgi.<wbr>py)</li><li>ProxyPass and ProxyPassReverse linked to the local geoserver</li></ul>
</li></ol>
<div>What is not yet clear:</div>
<div>from your last email I understand that the new site can be where I prefer. I would say that for now I can leave it inside contrib/geosites, if I can of course.</div>
<div>Then I have doubts to setup these lines:</div>
<div>
<ul>
<li>In the normal config I have Alias /geonode /dati/geonode/geonode but I think I should change to link it to my new site, is it right?<br>
</li><li>In WSGIProcessGroup the normal config has geonode, for my new site do I need to change it?</li><li>Regarding the directive Directory I had <span><Directory "/dati/geonode/geonode/"> for the normal config, here should I insert the path to my new site?</span></li><li><span>Regarding /uploaded/ and /static/ Aliases, I understood from your email I can put those directory where I prefer. Now another trivial question: /uploaded/ and /static/ folder have to be different from those created for the normal installation? if
no, then it is easy both configure the virtual host and run collectstatic. If yes, it is not clear how to run collectstatic for the new site. That's why the command python manage.py collectstatic works only within geonode folder and fill in the normal static_root
folder. Could you clarify this point?</span></li><li>Last but not least the line WSGIDaemonProcess is not clear, because running: service apache reload I had an error: <span>Name duplicates previous WSGI daemon definition (that's why apache find the virtualhost I have for the normal installation. The normal
installation has: <span>WSGIDaemonProcess geonode python-path=/dati/geonode/:/<wbr>dati/.venvs/geonode/lib/<wbr>python2.7/site-packages user=eugenio threads=15 processes=2 How should sort out this line for the new site?</span></span></li></ul>
<div>I offer myself to prepare an how to for dummies to be included as documentation in git, if I will be able to configure geosites.</div>
<div><br>
</div>
<div>Thanks for any clarification</div>
<div><br>
</div>
<div>Eugenio</div>
</div>
<div> </div>
<p></p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_3184959846751756924divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 18.33<div><div class="h5"><br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">I mean the whole gemex folder can be outside. For the static roots they can be anywhere and is not recommended to have them inside but rather in /var/www as they need to be served by the web server at some point.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-19 16:50 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_3184959846751756924m_-3548405383173214045divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Ok, once I run syncdb I 'm able to register new site! first step!!!!</p>
<p><br>
</p>
<p>Coming back to the first issue, I'm not sure to have understood well, do you mean the dir thumb, layers, static_root can stay ouside my newsite directory?</p>
<p>That means I cannot run collectstatic if those dirs are inside my site dir?</p>
<p>Actually in the docs I read I saw that the static folder is inside the new sites.</p>
<p><br>
</p>
<p>This part is not so clear to me....</p>
<p><br>
</p>
<p>E. </p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_3184959846751756924m_-3548405383173214045divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 16.22
<div>
<div class="m_3184959846751756924h5"><br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</div>
</div>
</font>
<div> </div>
</div>
<div>
<div class="m_3184959846751756924h5">
<div>
<div dir="ltr">It is a good practice to not install the new sites folders into the root of the code. They can live outside without problems.
<div><br>
</div>
<div>The second issue is that you did not run python manage.py syncdb or migrate to install the tables that come with geosites.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-19 15:50 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_3184959846751756924m_-3548405383173214045m_-2072122686189203174divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Sorry for these multiple emails,</p>
<p><br>
</p>
<p>I following your suggestion to create the site by hand I proceeded to register the new site by using the admin console as you suggested.</p>
<p>On save action I had this error message:</p>
<p><br>
</p>
<p><a href="http://pastebin.com/SskX1QNB" class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174OWAAutoLink" id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPlnk881200" target="_blank">http://pastebin.com/SskX1QNB</a></p>
<p><br>
</p>
<p> </p>
It seems geonode.contrib.geosites is not installed yet, right? <span class="m_3184959846751756924m_-3548405383173214045HOEnZb">
<font color="#888888">
<div><br>
</div>
</font></span>
<div><span class="m_3184959846751756924m_-3548405383173214045HOEnZb"><font color="#888888">E.<br>
</font></span>
<div class="m_3184959846751756924m_-3548405383173214045hm m_3184959846751756924m_-3548405383173214045HOEnZb"><br>
<br>
</div>
<div style="color:rgb(0,0,0)">
<div class="m_3184959846751756924m_-3548405383173214045hm m_3184959846751756924m_-3548405383173214045HOEnZb">
<hr style="display:inline-block;width:98%">
</div>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt">
<div class="m_3184959846751756924m_-3548405383173214045hm m_3184959846751756924m_-3548405383173214045HOEnZb"><b>Da:</b> Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 15.37<br>
<b>A:</b> Simone Dalmasso</div>
<div>
<div class="m_3184959846751756924m_-3548405383173214045h5"><br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</div>
</div>
</font>
<div> </div>
</div>
<div>
<div class="m_3184959846751756924m_-3548405383173214045h5">
<div>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Ok,</p>
<p><br>
</p>
<p>this is my new virtualhost prepared for the new site named 'gemex':</p>
<p><br>
</p>
<p></p>
<div><VirtualHost *:80></div>
<div> ServerName <a href="http://gemex.igg.cnr.it" target="_blank">http://gemex.igg.cnr.it</a></div>
<div> ServerAdmin webmaster@localhost</div>
<div> DocumentRoot /var/www/html</div>
<div><br>
</div>
<div> Options -Indexes +FollowSymLinks</div>
<div><br>
</div>
<div> Alias /gemex "/dati/geonode/geonode/contrib<wbr>/geosites"</div>
<div><br>
</div>
<div> WSGIDaemonProcess gemex python-path=/dati/geonode/geon<wbr>ode/contrib/geosites:/dati/.ve<wbr>nvs/geonode/lib/python2.7/site<wbr>-packages user=eugenio threads=15 processes=2</div>
<div><br>
</div>
<div> ErrorLog /var/log/apache2/error.log</div>
<div> LogLevel warn</div>
<div> CustomLog /var/log/apache2/access.log combined</div>
<div><br>
</div>
<div> WSGIProcessGroup gemex</div>
<div> WSGIPassAuthorization On</div>
<div> WSGIScriptAlias / /dati/geonode/geonode/contrib/<wbr>geosites/gemex/wsgi.py</div>
<div><br>
</div>
<div> <Directory "/dati/geonode/geonode/contrib<wbr>/geosites/gemex"></div>
<div> Options Indexes FollowSymLinks</div>
<div> Require all granted</div>
<div> IndexOptions FancyIndexing</div>
<div> </Directory></div>
<div><br>
</div>
<div></div>
<div> Alias /uploaded/ /dati/geonode/geonode/contrib/<wbr>geosites/gemex/uploaded/</div>
<div> Alias /static/ /dati/geonode/geonode/contrib/<wbr>geosites/gemex/static_root/</div>
<div><br>
</div>
<div> <span style="font-size:12pt"> ProxyPreserveHost On</span></div>
<div> ProxyPass /geoserver <a href="http://localhost:8080/geoserver" target="_blank">
http://localhost:8080/geoserve<wbr>r</a></div>
<div> ProxyPassReverse /geoserver <a href="http://localhost:8080/geoserver" target="_blank">
http://localhost:8080/geoserve<wbr>r</a></div>
<div><br>
</div>
<div> ProxyPass /geoserver2 <a href="http://localhost:8080/geoserver2" target="_blank">
http://localhost:8080/geoserve<wbr>r2</a></div>
<div> ProxyPassReverse /geoserver2 <a href="http://localhost:8080/geoserver2" target="_blank">
http://localhost:8080/geoserve<wbr>r2</a></div>
<div><br>
</div>
<div><br>
</div>
<div></VirtualHost></div>
<br>
<p></p>
My concerns are:
<div>
<ul>
<li>WSGIDeamon line, is that correct?<br>
</li><li>the first Alias, is that correct too?<br>
</li><li>Eventually the Directory is right?<br>
</li></ul>
<div></div>
<div>
<div><br>
<div><br>
</div>
<div>Moreover, I followed again this page for the http setup:</div>
<div><a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html" class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174OWAAutoLink" id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPlnk315037" target="_blank">http://docs.geonode.org/en/mas<wbr>ter/tutorials/install_and_admi<wbr>n/geonode_install/setup_config<wbr>ure_httpd.html</a></div>
<div><br>
</div>
<div>I think now should be rready for the collecstatic command, but I don't know how to run it in in the new static_root inside my site gemex.</div>
<div><br>
</div>
<div>Any hints?</div>
<div><br>
</div>
<div>E.<br>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPBorder_GT_14821580986800.921074174959708" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPContainer_14821580986780.5537899527490602" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174TextCell_14821580986790.40692400670345186" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPRemovePreviewContainer_14821580986790.46201272155770945">
</div>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPTitle_14821580986790.4863156750334723" style="color:rgb(0,75,139);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPUrlAnchor_14821580986790.636100223414487" href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html" style="text-decoration:none" target="_blank">Setup
& Configure HTTPD — GeoNode 2.4 documentation</a></div>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPMetadata_14821580986790.6015928446460255" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://docs.geonode.org" target="_blank">docs.geonode.org</a></div>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPDescription_14821580986800.3095178895629611" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Setup & Configure HTTPD¶ In this section we are going to setup Apache HTTP to serve GeoNode.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 15.03<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</font>
<div> </div>
</div>
<div>
<div dir="ltr">Exactly, one virtualhost for each site.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-19 14:53 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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Ok,</p>
<p><br>
</p>
<p>I will proceed this way.</p>
Then I have to create a new virtualhost pointing to the wsgi.py within the new site dir, right?
<div>In the same virtual host have I to set new aliases for uploaded dir and static_root as I did for the normal installation?</div>
<div><br>
</div>
<div>E.<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 14.21
<div>
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174h5"><br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</div>
</div>
</font>
<div> </div>
</div>
<div>
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174h5">
<div>
<div dir="ltr">I suggest you to go manually and create a site folder copying the site_template, rename and add the Site object into the database.
<div><br>
</div>
<div>geosites has not been revised for a while and geonode improved. It works but the shortcut command addsite may be broken.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-19 11:32 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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Simone,</p>
<p><br>
</p>
<p>I did what you suggested, actually now I have the addsite command, but as you announced I have also this error:</p>
<p><br>
</p>
<p><span>AttributeError: 'Settings' object has no attribute 'SITE_ROOT'</span><br>
</p>
<p><span><br>
</span></p>
<p><span>then I added SITE_ROOT in local_setting.py inserting </span><span style="font-size:12pt">the path "geonode/contrib/geosites"</span></p>
<p><span><br>
</span></p>
<p><span>afterwords I had this error:</span></p>
<p><span><br>
</span></p>
<p><span><span>AttributeError: 'Settings' object has no attribute 'SERVE_PATH'</span><br>
</span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>so that I added SERVE_PATH in local_setting.py inserting the path "<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/stat<wbr>ic</span>"</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>but I'm not sure I did the right thing, since now I have this error:</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span><span>OSError: [Errno 17] File exists: '/dati/geonode/geonode/contrib<wbr>/site2'</span><br>
</span></span></p>
<br>
Where I'm wrong?
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Eugenio<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 11.04<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</font>
<div> </div>
</div>
<div>
<div dir="ltr">you have to add it in INSTALLED_APPS, currently it is only listed in the contrib apps.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-19 9:20 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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<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.boo<wbr>tstrap3',</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 style="display:inline-block;width:98%">
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> lunedì 19 dicembre 2016 09.04<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663HOEnZb"><font color="#888888"></font></span>
<div><span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663HOEnZb"><font color="#888888"> <br>
Eugenio<br>
</font></span>
<div style="color:rgb(0,0,0)">
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663hm m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663HOEnZb">
<hr style="display:inline-block;width:98%">
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663h5">
<div>
<div id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-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_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882OWAAutoLink" id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882LPlnk387680" target="_blank">https://geonode.readthedoc<wbr>s.io/en/2.0/tutorials/admin/mu<wbr>lti-tenancy.html</a></p>
<p>[2] <a href="https://github.com/GeoNode/geonode/tree/master/geonode/contrib/geosites" class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882OWAAutoLink" id="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882LPlnk766724" target="_blank">https://github.com/GeoNode<wbr>/geonode/tree/master/geonode/c<wbr>ontrib/geosites</a></p>
<br>
<br>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"><br>
<br clear="all">
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663gmail_signature">
Simone </div>
</font></span></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032gmail_signature">
Simone </div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041gmail_signature">
Simone </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_3184959846751756924m_-3548405383173214045m_-2072122686189203174gmail_signature">Simone </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_3184959846751756924m_-3548405383173214045gmail_signature">Simone </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_3184959846751756924gmail_signature">Simone </div>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>