<div dir="ltr"><div><div><div><div><div>Hi Francesco Bartoli,<br><br></div>Find attached my geonode.conf file available in /etc/apache2/sites-available/ and /etc/apache2/sites-enabled/. <br><br></div>my_geonode project is installed in my_geonode virtualenv available in " (my_geonode) root@geo:/etc/julierme_virtualenv/my_geonode/my_geonode "<br><br></div>I have python2.7 (2.7.12) installed in /usr/bin/python2.7 and in /etc/julierme_virtualenv/my_geonode/bin/python2.7.<br><br></div>I have my geonode production installed via apt-get (see geonode-production.png in attached) and geonode-project installed via (<a href="https://github.com/GeoNode/geonode-project">https://github.com/GeoNode/geonode-project</a>) (see geonode-project-virtualenv.png).<br><br></div>What changes should I make in geonode.conf, so I can mirror/apply the changes made in geonode-project to geonode production?<br><div><br>I apologize for my small background in IT. <br><br><br></div><div>Thank you very much for your patience and time.<br><br></div><div>I appreciated it.<br><br></div><div>Kind regards<br><br></div><div>Julierme Pinheiro<br></div><div><div><div><br><div><div><br><br><br><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-14 14:02 GMT-03:00 Francesco Bartoli <span dir="ltr"><<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Apache configuration (i.e. <a href="http://docs.geonode.org/en/master/_downloads/geonode.conf" target="_blank">http://docs.geonode.org/<wbr>en/master/_downloads/geonode.<wbr>conf</a>) has to be changed accordingly with your geonode upstream project my_geonode and its python-path matters.<div><div class="h5"><div><br><div><div>Il giorno 11/apr/2018, alle ore 17:11, Julierme Pinheiro <<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@<wbr>gmail.com</a>> ha scritto:</div><br class="m_7868670527109309617Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div>HI Francesco,<br><br></div>Thank you for your reply. <br><br>That means If I install my_geonode via virtualenv I would need a side script to apply my_geonode changes in my geonode installed via apt-get in respect to theming geonode?<br><br></div>Thank you for your time and patience<br><br></div>I appreciated it<br><br></div>Julierme<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-10 3:26 GMT-03:00 francesco bartoli <span dir="ltr"><<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.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">Hi Julierme,<div><br></div><div>those commands are supposed to be executed in development mode within the same virtual environment assuming you have geonode and my_geonode folders with the code base in a common base path:</div><div><br></div><div><base path>/geonode</div><div><base path>/my_geonode</div><div><br></div><div>It's up to you if you want to automate within a script, usually in dev mode you start geoserver and keep it up and running while hacking geonode/my_geonode</div><div><br></div><div>Francesco</div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>2018-04-09 22:48 GMT+02:00 Julierme Pinheiro <span dir="ltr"><<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@g<wbr>mail.com</a>></span>:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_7868670527109309617h5"><div dir="ltr"><div><div><div><div><div><div><div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(32,18,77)">Hi Geonode contributers and developers,<br><br></span></span></font></div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(32,18,77)">Going back to a previous recommendations made by Tony Schonbuchner and Alessio Fabiane about Theming Geonode. <br><span class="m_7868670527109309617m_-4456985879787289185m_3217766509663804146gmail-im"><br><div> <a href="https://github.com/GeoNode/geonode-project" target="_blank">https://github.com/GeoNode/ge<wbr>onode-project</a></div><div><br></div><div>Then the rest should be basic Django.</div><div>- create your app</div><div>- create your view</div><div>- create your template</div><div>- create your urls.py</div><div>- add it to your settings file</div><div>- and add it to project urls.py</div><div><br></div></span><a href="http://geonode.org/dev-workshop/#/" target="_blank">http://geonode.org/dev-worksho<wbr>p/#/</a> *<span class="m_7868670527109309617m_-4456985879787289185m_3217766509663804146gmail-im"><br><br>Adding to Toni details,<div>once you have been able to setup you
geonode-project (see the README on how to do that), you should be able
to add tabs by modifying this file here</div><div><br></div><div><a href="https://github.com/GeoNode/geonode-project/blob/2.8.0/project_name/templates/site_base.html" target="_blank">https://github.com/GeoNode/geo<wbr>node-project/blob/2.8.0/projec<wbr>t_name/templates/site_base.htm<wbr>l</a><br></div><div><br></div><div>Just remove the {% comment %} / {% endcomment %} keywrods to enable the code and update the <li> accordingly.</div></span><br></span></span></font></div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(32,18,77)">Said that, I did the following based in here <a href="http://geonode.org/dev-workshop/#/3/2" target="_blank">http://geonode.org/dev-worksho<wbr>p/#/3/2</a> :<br><br> 1 - I created a virtualenv <geonode-virtualenv> in (/etc/julierme_virtualenv/)<br><br></span></span></font></div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(32,18,77)"> 2 - I executed <code>django-admin.py startproject geonode-project --template=<a href="https://github.com/GeoNode/geonode-project/archive/2.8.0.zip" target="_blank">https://github.com/<wbr>GeoNode/geonode-project/archiv<wbr>e/2.8.0.zip</a> -epy,rst</code>.<br><br></span></span></font></div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(32,18,77)"> 3 - I activated geonode-virtualenv and ran:<br><br><code> pip install -e geonode-project<br><br></code></span></span></font></div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><code>Now I have:<br><br>1 - geonode in ( /etc/geonode/templates and /usr/local/lib/python2.7/dist-<wbr>packages/geonode ) #installed via apt-get#<br><br></code></span></font></div><font size="4"><span style="font-family:arial,helvetica,sans-serif"><code>2 - geonode-project in /etc/julierme_virtualenv/geono<wbr>de-virtualenv/ #Installed according to here <a href="http://geonode.org/dev-workshop/#/3/2%23" target="_blank">http://geonode.org/dev-worksho<wbr>p/#/3/2#</a><br><br></code></span></font></div><code><font size="4"><font face="arial,helvetica,sans-serif">I got confused in here (<a href="http://geonode.org/dev-workshop/#/3/3" target="_blank">http://geonode.org/dev-worksh<wbr>op/#/3/3</a>): <br><br><ul>
<li><code>cd geonode && paver start_geoserver</code></li>
<li><code>cd ../my_geonode && python manage.py runserver</code></li>
</ul><p><b>You can wrap this in a simple executable .sh script</b></p><p><b>Should I have two .sh files ( one for <code><font size="4"><font face="arial,helvetica,sans-serif"><code>cd geonode && paver start_geoserver</code></font></font></code> and other for <code><font size="4"><font face="arial,helvetica,sans-serif"><code>cd ../my_geonode && python manage.py runserver</code></font></font></code>) ? if so, where should them be stored? If one .sh file, where should it be stored?</b></p><p><b><br></b></p><p><b>Thank you for your time in advance</b></p><p><b>I appreciated your time and patience.</b></p><p><b>Kind Regards</b></p><span class="m_7868670527109309617m_-4456985879787289185HOEnZb"><font color="#888888"><p><b>Julierme Pinheiro<br></b></p><p><b><br></b></p><p><b><br></b></p><p><b><br></b></p><p><br></p><p><br></p><p><br></p><br><br><br><br></font></span></font></font></code><div><code><font size="4"><font face="arial,helvetica,sans-serif"><br><br></font></font></code><div><br><br></div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>