<div dir="ltr">Hi,<div><br></div><div>you actually used a different approach form the dev workshop because you installed geonode with apt-get. It is ok to do like this but you need to change a bit the setup.</div><div>In your case geonode and geoserver are already running (apache and tomcat) so you can skip the "cd geonode && paver start_geoserver" at all. Just run your geonode-project, it will use the geonode installed system wide.</div><div><br></div><div>Anyway to answer your question, if you want to wrap commands in a .sh script, you can put it where you prefer, just make sure the path it will use are correct.</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-09 22:48 GMT+02:00 Julierme Pinheiro <span dir="ltr"><<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@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"><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_8758138653025085734gmail-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_8758138653025085734gmail-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-<wbr>workshop/#/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/<wbr>archive/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/<wbr>geonode-virtualenv/ #Installed according to here <a href="http://geonode.org/dev-workshop/#/3/2%23" target="_blank">http://geonode.org/dev-<wbr>workshop/#/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-<wbr>workshop/#/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="HOEnZb"><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><div><code><font size="4"><font face="arial,helvetica,sans-serif"><br><br></font></font></code><div><div><div><div><div><div><div><br><br></div></div></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>