<div dir="ltr">All files of the site_template folder.<div>Like </div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/contrib/geosites/site_template/settings.py#L39">https://github.com/GeoNode/geonode/blob/master/geonode/contrib/geosites/site_template/settings.py#L39</a></div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/contrib/geosites/site_template/wsgi.py#L39">https://github.com/GeoNode/geonode/blob/master/geonode/contrib/geosites/site_template/wsgi.py#L39</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-09 9:39 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_792682570515660584divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi Simone,</p>
<p><br>
</p>
<p>you said that I should have adjust correctly the variables in the files that start with "$".</p>
<p>This is not clear to me.</p>
<p>What file do you refer? and Which variables?</p>
<p><br>
</p>
<p>best</p>
<p><br>
Eugenio</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_792682570515660584divRplyFwdMsg" 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> giovedì 5 gennaio 2017 07.41<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">The $ should not be there, is an identifier for pieces of code that would be changed by the addsite script. It is a normal python path.
<div>And yes, the SERVE_PATH should be in one of the project's settings as it is used to locate your static and media files "STATIC_ROOT = os.path.join(SERVE_PATH, 'static')"</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-01-03 17:13 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_792682570515660584m_2022255946620591159divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Simone,</p>
<p><br>
</p>
<p>I presume maybe I'm not so far from finalization of the configuration.</p>
<p>I apologize if I'm not enough smart, but I don't understand which file do you mentioned, starting with "$". I suppose you intended the line 19 in the wsgi.py located in the geosite folder (i.e. gemex for me), am I correct?</p>
<p>If yes I changed the line in:</p>
<p><span>os.environ.setdefault("DJANGO_<wbr>SETTINGS_MODULE", "$geosites.%s.settings" % curdir)</span></p>
<p><br>
</p>
<p>since, as you know, I'm using a normal installation of geonode, so I have the geosites project forlder within:</p>
<p>/geonode/geonode/contrib and my project folder name is the original geosites.</p>
<p>Did I understand well?</p>
<p><br>
</p>
<p>Regarding the static_root it is my intention to leave that folder in my site folder (/geonode/geonode/contrib/geos<wbr>ites/gemex/). In that case I should run your suggested command:</p>
<p><br>
</p>
<p><span>python manage.py collectstatic --settings=geonode.contrib.geo<wbr>sites.gemex.settings</span></p>
<p><br>
</p>
<p>and in gemex.settings has to be inserted the variable SERVE_PATH, am I correct?</p>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<p>Eugenio<br>
</p>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_792682570515660584m_2022255946620591159divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" 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> martedì 3 gennaio 2017 08.35<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">Eugenio is all more or less right.
<div><br>
</div>
<div>The error you have is because, since you copied the site_template folder manually, you also have to correctly adjust the variables in the files that start with "$". In this case you have to put the correct project name in the wsgi.py-</div>
<div><br>
</div>
<div><br>
</div>
<div>For the static files, they can stay anywhere, but is suggested to have them in the web server folders /var/www etc,as said. To copy them there, once you have set the STATIC_ROOT folder in the geosite settings yu can use the normal geonode manage.py file
by passing it the geosites settings instead:</div>
<div><br>
</div>
<div>python manage.py collectstatic --settings=geonode.contrib.geo<wbr>sites.gemex.settings</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-29 12:21 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_792682570515660584m_2022255946620591159m_2092103910631525437divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Simone and all,</p>
<p><br>
</p>
<p>unfortunately I hadn't solved my problem multi-tenancy configuration.</p>
<p>My new questions are:</p>
<ul>
<li>can I set-up multi-geosites from my running normal installation? (I installed geonode following this guide [1]) or should I install a geonode from scratch?</li><li>to run multi-geosites do you suggest me to setup multi-geosite from special version of geonode as for instance [2], if yes How to start? <br>
</li><li>in my geonode normal installation manage.py and manage_all.py are missing in the
<span>/geonode/geonode/contrib/geosi<wbr>tes/ </span><br>
</li><li>the master site has to be within contrib/geosites/master-site, which relationship is there between the normal geonode site and the master-site? in case master-site has to inherit from normal one-site config, how?</li><li>just to be sure is this the right order of the setting files read by geonode:
<br>
<ul>
<li>/geonode/geonode/local_setting<wbr>.py and <span>/geonode/geonode/setting.py (overridden by the first)</span></li><li><span><span>/geonode/geonode/contrib/geosi<wbr>tes/pre_setting.py</span></span></li><li><span><span><span><span>/geonode/geonode/contrib/geosi<wbr>tes/local_setting.py</span></span>
<div>and <span>/geonode/geonode/contrib/geosi<wbr>tessetting.py (overridden by the first)</span></div>
</span></span></li><li><span><span><span><span><span>/geonode/geonode/contrib/geosi<wbr>tes/post_setting.py</span></span></span></span></span></li></ul>
</li></ul>
<span><span><span><span><span></span></span></span></span></span>
<ul>
<li><span><span></span></span>in my test performed in the last days I set the: <span>SERVE_PATH= "/dati/geonode/geonode/contrib<wbr>/geosites/ in /geonode/geonode/local_setting<wbr>.py is that right? in apache error log I have:</span></li></ul>
<p></p>
<div>[Thu Dec 29 11:46:21.129691 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] self.load_middleware()<br>
[Thu Dec 29 11:46:21.129706 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] File "/usr/local/lib/python2.7/dist<wbr>-packages/django/core/handlers<wbr>/base.py", line 44, in load_middleware<br>
[Thu Dec 29 11:46:21.129728 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] for middleware_path in settings.MIDDLEWARE_CLASSES:<br>
[Thu Dec 29 11:46:21.129742 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] File "/usr/local/lib/python2.7/dist<wbr>-packages/django/conf/__init__<wbr>.py", line 54, in __getattr__<br>
[Thu Dec 29 11:46:21.129763 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] self._setup(name)<br>
[Thu Dec 29 11:46:21.129776 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] File "/usr/local/lib/python2.7/dist<wbr>-packages/django/conf/__init__<wbr>.py", line 49, in _setup<br>
[Thu Dec 29 11:46:21.129797 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] self._wrapped = Settings(settings_module)<br>
[Thu Dec 29 11:46:21.129810 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] File "/usr/local/lib/python2.7/dist<wbr>-packages/django/conf/__init__<wbr>.py", line 132, in __init__<br>
[Thu Dec 29 11:46:21.129831 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] % (self.SETTINGS_MODULE, e)<br>
[Thu Dec 29 11:46:21.129851 2016] [:error] [pid 14216] [remote <a href="http://93.32.72.156:62917" target="_blank">
93.32.72.156:62917</a>] ImportError: Could not import settings '$PROJECT_NAME.gemex.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named $PROJECT_NAME.gemex.settings</div>
<br>
<p></p>
<p>the error at last line it is seems to be related to something missing....<br>
</p>
<ul>
<li><span>last but not least I still have doubt on the positioning of static_root folder for each geosites, I would maintain them within each geosite folder but I don't know how to run collectstatic to populate that folder.<br>
</span></li></ul>
<p>Thanks for any hint...</p>
<p><br>
</p>
<p>Eugenio<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>[1] <span><a href="http://docs.geonode.org/en/latest/tutorials/install_and_admin/geonode_install/index.html" class="m_792682570515660584m_2022255946620591159m_2092103910631525437OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPlnk234043" target="_blank">http://docs.geonode.org/en/lat<wbr>est/tutorials/install_and_admi<wbr>n/geonode_install/index.html</a></span></p>
<p><span><a href="http://docs.geonode.org/en/latest/tutorials/install_and_admin/geonode_install/index.html" class="m_792682570515660584m_2022255946620591159m_2092103910631525437OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPlnk234043" target="_blank">[2]
</a><a href="https://github.com/terranodo/geosites-project" class="m_792682570515660584m_2022255946620591159m_2092103910631525437OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPlnk12008" target="_blank">https://github.com/terranodo/g<wbr>eosites-project</a></span></p>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPBorder_GT_14830089747800.8922083057895168" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPContainer_14830089747590.41222671179727144" 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_792682570515660584m_2022255946620591159m_2092103910631525437TextCell_14830089747690.7170317073887562" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPRemovePreviewContainer_14830089747690.0033160654363294517">
</div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPTitle_14830089747690.3710783031082955" style="color:rgb(0,75,139);font-weight:400;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_792682570515660584m_2022255946620591159m_2092103910631525437LPUrlAnchor_14830089747730.7007666096409254" href="https://github.com/terranodo/geosites-project" style="text-decoration:none" target="_blank">terranodo/geosites-project</a></div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPMetadata_14830089747740.7484478602875089" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://github.com" target="_blank">github.com</a></div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437LPDescription_14830089747770.6618173541825744" style="display:block;color:rgb(102,102,102);font-weight:400;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">
geosites-project - A skeleton project for creating a multi-tenancy GeoNode using the GeoSites contrib app.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<p></p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" 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> mercoledì 21 dicembre 2016 10.37<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">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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<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.py<wbr>)</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/:/da<wbr>ti/.venvs/geonode/lib/python2.<wbr>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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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="m_792682570515660584m_2022255946620591159m_2092103910631525437h5"><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_792682570515660584m_2022255946620591159m_2092103910631525437h5">
<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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045HOEnZb">
<font color="#888888">
<div><br>
</div>
</font></span>
<div><span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045HOEnZb"><font color="#888888">E.<br>
</font></span>
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045hm m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045HOEnZb">
<br>
<br>
</div>
<div style="color:rgb(0,0,0)">
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045hm m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045HOEnZb">
<hr style="display:inline-block;width:98%">
</div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" style="font-size:11pt">
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045hm m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045h5">
<br>
<b>Oggetto:</b> Re: Multi-Tenancy: how to start</div>
</div>
</font>
<div> </div>
</div>
<div>
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045h5">
<div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPBorder_GT_14821580986800.921074174959708" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174TextCell_14821580986790.40692400670345186" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174LPRemovePreviewContainer_14821580986790.46201272155770945">
</div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663HOEnZb"><font color="#888888"></font></span>
<div><span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663hm m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663HOEnZb">
<hr style="display:inline-block;width:98%">
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" 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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663h5">
<div>
<div id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663m_-5701824888878642882OWAAutoLink" id="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032HOEnZb"><font color="#888888"><br>
<br clear="all">
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041m_-4748045079748085032m_-4147704924748566525m_-6773632688027657663gmail_signature">
Simone </div>
</font></span></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045m_-2072122686189203174m_-8687477361400298041HOEnZb"><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_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_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924m_-3548405383173214045gmail_signature">
Simone </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437m_3184959846751756924gmail_signature">
Simone </div>
</font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584m_2022255946620591159HOEnZb"><font color="#888888"><br>
<br clear="all">
<span class="m_792682570515660584HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_792682570515660584m_2022255946620591159m_2092103910631525437gmail_signature">Simone </div>
</font></span></font></span></div>
<span class="m_792682570515660584HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="m_792682570515660584HOEnZb"><font color="#888888"></font></span></div>
<span class="m_792682570515660584HOEnZb"><font color="#888888"><br>
<br clear="all"><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_792682570515660584m_2022255946620591159gmail_signature">Simone </div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_792682570515660584gmail_signature">Simone </div>
</font></span></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>