<div dir="ltr"><div dir="ltr">Hey Toni, <div><br></div><div>Unfortunately I can not confirm it. I still don't see the changes. Perhaps I edit the wrong files? The source code for the core project is under: /Envs/wfp_geonode/src/geonode</div><div>I tried to restart the local server after the changes but there was no effect. Just in case, I also changed the permissions of the files.</div><div><br></div><div>Cheers</div><div>Dimitris</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 4, 2019 at 11:17 AM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Dimitris,<div><br></div><div>great to hear! For understanding</div><div>If there is no file within your project structure which overwrites the core your core </div><div>changes should apply. Can you confirm this?</div><div><br></div><div>Cheers,</div><div><br></div><div>Toni</div><div><br></div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div><div><div>-----------------------------------------------</div><div>CSGIS</div><div><br></div><div>-----------------------------------------------</div><div><div>Kolonnadenstraße 1</div><div>04109 Leipzig</div></div><div>-----------------------------------------------</div><div>Mobil<span class="gmail-m_-416515969349546386gmail-m_-6811870370378316427Apple-tab-span" style="white-space:pre-wrap">    </span>+49/ (0) 176 6680 3198</div><div>Tel <span class="gmail-m_-416515969349546386gmail-m_-6811870370378316427Apple-tab-span" style="white-space:pre-wrap">              </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="gmail-m_-416515969349546386gmail-m_-6811870370378316427Apple-tab-span" style="white-space:pre-wrap">              </span>+49/ (0) 341 24 04 73</div><div>Web<span class="gmail-m_-416515969349546386gmail-m_-6811870370378316427Apple-tab-span" style="white-space:pre-wrap">         </span><a href="http://csgis.de" target="_blank">http://csgis.de</a></div><div>-----------------------------------------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>Am 04.01.2019 um 09:29 schrieb Dimitris Kar <<a href="mailto:dkarakostis@gmail.com" target="_blank">dkarakostis@gmail.com</a>>:</div><br class="gmail-m_-416515969349546386gmail-m_-6811870370378316427Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello Toni, <br></div><div><br></div><div>Thanks for the answer. After reinstalling everything in a fresh VM, everything runs fine. I also made some tests editing the templates and creating a contrib app and everything seems to be working. I am aware that when using the geonode-project, its not recommended to edit/change the geonode core but I was curious to try that. For some reason though when I do minor changes on templates (/Envs/geonode/src/geonode), they are not applied. Are you aware if this is the expected behavior?</div><div><br></div><div>Also I have checked your video on vimeo (<a href="https://vimeo.com/278003647#t=37m37s" target="_blank">https://vimeo.com/278003647#t=37m37s</a>). Great documentation! <br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 2, 2019 at 6:43 PM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Dimitris,<div><br></div><div>let me recap:</div><div><br><div><blockquote type="cite"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>IOError: [Errno 13] Permission denied: '/usr/local/share/GeoIP'<br></div></div></div></div></div></div></div></blockquote><div><br></div><div>This was solved by settings permissions of /usr/local/share</div><br><blockquote type="cite"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>And then when I run the paver sync or the paver start (as in the instructions), I get:</div><div>"...</div><div>django.db.utils.OperationalError: could not connect to server: Connection refused<br>    Is the server running on host "localhost" (127.0.0.1) and accepting<br>    TCP/IP connections on port 5432?<br></div></div></div></div></div></div></div></blockquote><div><br></div>Note, with dev setup there is neither tomcat nor postgresql involved.</div><div>GeoServer is run by use of Jetty. Instead of Postgresql Setup we´re using</div><div>Sqlite.</div><div><br></div><div>So the error is here:</div><div><span style="font-family:ArialMT"><span class="gmail-m_-416515969349546386gmail-m_-6811870370378316427gmail-m_3709636100140821228Apple-tab-span" style="white-space:pre-wrap">     </span>DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings</span></div><div><font face="ArialMT">You´re using local_settings which expects a running postgresql server.</font></div><div><font face="ArialMT"><a href="https://github.com/GeoNode/geonode-project/blob/master/project_name/local_settings.py.sample#L88" target="_blank">https://github.com/GeoNode/geonode-project/blob/master/project_name/local_settings.py.sample#L88</a></font></div><div><font face="ArialMT"><br></font></div><div><font face="ArialMT">Try: </font></div><div><span style="font-family:ArialMT"><span class="gmail-m_-416515969349546386gmail-m_-6811870370378316427gmail-m_3709636100140821228Apple-tab-span" style="white-space:pre-wrap">    </span>DJANGO_SETTINGS_MODULE=wfp_geonode.settings</span><font face="ArialMT"><br></font><div>(settings instead of local_settings) instead.</div><div><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I am running the installation in a virtual environment inside a vagrant VM (ubuntu/xenial64). I thought it could be related with the port forwarding but that seems to be configured ok in the vagrantfile:</div><div><br></div><div>  config.vm.network :forwarded_port, guest: 5432, host: 5432</div></div></div></div></div></div></blockquote><div><br></div>This is totally fine. It would only matter when running in production.</div><div>(Sqlite should not care about the port, in production I would further close 5432 and</div><div>only connect by local_tunnel to postgres)<br><div><br></div><br><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I also tried to check the configuration in the pg_config file but I can not find out where my postgres is installed. I run: which psql but there is no output. </div></div></div></div></div></div></blockquote><div><br></div><div>Also only relevant with production setup. ;)</div><br><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>On a different note, the installation comes with jetty server right?</div></div></div></div></div></div></blockquote><div><br></div><div>See above.</div><div><br></div><div><br></div><div>As summary. You can use the dev setup with with django-dev-server, jetty and sqlite to quickly</div><div>setup a environment for development. Going to production is much more complex as the different</div><div>parts have to be configured. ( The docs explain how (a bit outdated but working.) I´ve created a little</div><div>ansible playbook which automates those steps: <a href="https://github.com/csgis/geonode_ansible" target="_blank">https://github.com/csgis/geonode_ansible</a> )</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Toni</div><div><br></div><div><br></div></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>