<div dir="ltr"><p>Dear all,<br>
Here <a href="http://192.241.135.159/" rel="nofollow">http://192.241.135.159/</a>
is an example. Ubuntu Server 18.04 LTS with geonode-project@2.8
installed via docker using
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"my_geonode.settings") config for WSGI.py. SITE_BASE.CSS has not
been retrieved.<br><br></p>
<p></p>
<p>But both, either settings and local_settings in WSGI.py, SITE_BASE.CSS has not been retrieved.<br>
Thank you for your time in advance</p><p>Any help will be very appreciated</p><p>Kind regards</p><p>Julierme<br></p><p><br></p></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 6:22 AM Alessio Fabiani <<a href="mailto:notifications@github.com">notifications@github.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
historically geonode-project followed the path described by Matteo for<br>
whatever reasons that I don't remember now.<br>
<br>
I agree that we should align the two approaches in order to avoid confusion.<br>
<br>
<br>
Il giorno lun 3 dic 2018 alle ore 16:21 juliermegithub <<br>
<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>> ha scritto:<br>
<br>
> Hi Alessio and Matteo,<br>
><br>
> I tried installing a new instance, using local_settings.py and configuring<br>
> wsgi.py as os.environ.setdefault("DJANGO_SETTINGS_MODULE",<br>
> "my_geonode.settings").<br>
> But the installation did not succeed.<br>
><br>
> Kind regards<br>
><br>
> Julierme<br>
><br>
><br>
> On Mon, Dec 3, 2018 at 11:38 AM Julierme Pinheiro <<br>
> <a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@gmail.com</a>> wrote:<br>
><br>
> > Dear Alessio and Matteo,<br>
> ><br>
> > Thank you both for the highlights. Let me understand what you both<br>
> pointed<br>
> > here:<br>
> ><br>
> > By Alessio:<br>
> ><br>
> > I understood that I can use local_settings.py, and still configure<br>
> wsgi.py<br>
> > as os.environ.setdefault("DJANGO_SETTINGS_MODULE",<br>
> "my_geonode.settings").<br>
> > Is that the correct understanding?<br>
> > Sorry Alessio, one thing I did not understand: I currently have<br>
> > "DJANGO_SETTINGS_MODULE", "my_geonode.local_settings" set in WSGI.py for<br>
> > the installed geonode-project@2.8 instance, Can I revert this<br>
> > configuration to "my_geonode.settings" by adding the line <<br>
> > DJANGO_SETTINGS_MODULE=my_geonode.settings> to the file uwsgi.ini?<br>
> ><br>
> > By Matteo:<br>
> ><br>
> > First of all, I could not understand why we run the command<br>
> > DJANGO_SETTINGS_MODULE=my_geonode.local_settings paver setup, as we<br>
> already<br>
> > have a geoserver4my_geonode container. But anyway, I ran the commands<br>
> > bellow and got the response for paver start:<br>
> ><br>
> > $ docker exec -it django4my_geonode paver reset<br>
> ><br>
> > $ docker exec -it django4my_geonode paver setup<br>
> ><br>
> > $ docker exec -it django4my_geonode paver sync<br>
> ><br>
> > $ docker exec -it django4my_geonode paver start<br>
> ><br>
> > Java was not found in your path.<br>
> ><br>
> > Any comment on that will be very appreciated it.<br>
> ><br>
> > Kind Regards<br>
> ><br>
> > Julierme<br>
> ><br>
> ><br>
> > On Mon, Dec 3, 2018 at 7:21 AM Matteo De Stefano <<br>
> <a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>><br>
> > wrote:<br>
> ><br>
> >> This is an issue in gonode-project settings and local_settings<br>
> >> management, in my opinion.<br>
> >><br>
> >> Currently, local_settings.py are always imported by settings.py, and not<br>
> >> overriding but just "extending" settings.py.<br>
> >><br>
> >> This diverges from the behavior of local_settings in vanilla geonode,<br>
> >> where local_settings.py are importing settings.py, and overriding:<br>
> >><br>
> >><br>
> <a href="https://github.com/GeoNode/geonode/blob/master/geonode/local_settings.py.geoserver.sample" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/local_settings.py.geoserver.sample</a><br>
> >><br>
> >> This is confusing, and the instructions in README are wrong, since wsgi<br>
> >> needs always to load settings.py, with current approach (to be fixed?).<br>
> >> Pointing to local_settings.py is wrong.<br>
> >><br>
> >> The following lines of instructions in README should be removed, or<br>
> >> modified:<br>
> >><br>
> >> **# Using Custom Local Settings<br>
> >> cp my_geonode/local_settings.py.sample my_geonode/local_settings.py<br>
> >><br>
> >> vim my_geonode/wsgi.py<br>
> >> --> os.environ.setdefault("DJANGO_SETTINGS_MODULE",<br>
> >> "my_geonode.local_settings")<br>
> >><br>
> >> DJANGO_SETTINGS_MODULE=my_geonode.local_settings paver reset<br>
> >> DJANGO_SETTINGS_MODULE=my_geonode.local_settings paver setup<br>
> >> DJANGO_SETTINGS_MODULE=my_geonode.local_settings paver sync<br>
> >> DJANGO_SETTINGS_MODULE=my_geonode.local_settings paver start**<br>
> >><br>
> >> —<br>
> >> You are receiving this because you were mentioned.<br>
> >> Reply to this email directly, view it on GitHub<br>
> >> <<br>
> <a href="https://github.com/GeoNode/geonode-project/issues/51#issuecomment-443641754" target="_blank">https://github.com/GeoNode/geonode-project/issues/51#issuecomment-443641754</a><br>
> >,<br>
> >> or mute the thread<br>
> >> <<br>
> <a href="https://github.com/notifications/unsubscribe-auth/ANlWkFwZPbuVTm8DhMP-_ZSAf4hocIpfks5u1O0XgaJpZM4Yy2Av" target="_blank">https://github.com/notifications/unsubscribe-auth/ANlWkFwZPbuVTm8DhMP-_ZSAf4hocIpfks5u1O0XgaJpZM4Yy2Av</a><br>
> ><br>
> >> .<br>
> >><br>
> ><br>
><br>
> —<br>
> You are receiving this because you commented.<br>
> Reply to this email directly, view it on GitHub<br>
> <<a href="https://github.com/GeoNode/geonode-project/issues/51#issuecomment-443747404" target="_blank">https://github.com/GeoNode/geonode-project/issues/51#issuecomment-443747404</a>>,<br>
> or mute the thread<br>
> <<a href="https://github.com/notifications/unsubscribe-auth/ABOARbAHtqy2yg1l1Jnl4QPKjlxhMxvaks5u1UF-gaJpZM4Yy2Av" target="_blank">https://github.com/notifications/unsubscribe-auth/ABOARbAHtqy2yg1l1Jnl4QPKjlxhMxvaks5u1UF-gaJpZM4Yy2Av</a>><br>
> .<br>
><br>
<br>
<br>
-- <br>
<br>
==<br>
<br>
GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a><br>
for more information.<br>
==<br>
Ing. Alessio Fabiani<br>
<br>
@alfa7691<br>
Founder/Technical Lead<br>
<br>
<br>
GeoSolutions S.A.S.<br>
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy<br>
phone: +39 0584 962313<br>
fax: +39 0584 1660272<br>
mob: +39 331 6233686<br>
<br>
<br>
<a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br>
<a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a><br>
-------------------------------------------------------<br>
<br>
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE<br>
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si<br>
precisa che ogni circostanza inerente alla presente email (il suo<br>
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è<br>
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il<br>
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra<br>
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.<br>
<br>
<br>
This email is intended only for the person or entity to which it is<br>
addressed and may contain information that is privileged, confidential or<br>
otherwise protected from disclosure. We remind that - as provided by<br>
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this<br>
e-mail or the information herein by anyone other than the intended<br>
recipient is prohibited. If you have received this email by mistake, please<br>
notify us immediately by telephone or e-mail.<br>
<p style="font-size:small;color:#666">—<br>You are receiving this because you were mentioned.<br>Reply to this email directly, <a href="https://github.com/GeoNode/geonode-project/issues/51#issuecomment-444398806" target="_blank">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANlWkJssJ0MYU-5UUJQuQ7t6oHB_jANLks5u14JHgaJpZM4Yy2Av" target="_blank">mute the thread</a>.<img src="https://github.com/notifications/beacon/ANlWkPm7yDIyzJH0FiaCwPjNgSPzY87Rks5u14JHgaJpZM4Yy2Av.gif" height="1" width="1" alt=""></p>
</blockquote></div>