<div dir="ltr">Hi Kevin,<div><br></div><div>Unfortunately Geoexplorer is not managed by the debug_static setting. You would have to modify it manually <a href="https://github.com/GeoNode/geonode/blob/master/geonode/templates/geonode/geo_header.html#L14">https://github.com/GeoNode/geonode/blob/master/geonode/templates/geonode/geo_header.html#L14</a>.</div><div><br></div><div>In any case, debug_static requires also that all the js libraries are fetched with npm + bower by running "bower install" in the static folder, and collectstatic doesn't have any effect on that, debug static and debug should be used with the development setup where static files are served by the django development server.</div><div><br></div><div>Hope this helps.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-27 17:59 GMT+02:00 Côté, Kevin <span dir="ltr"><<a href="mailto:Kevin.Cote@wsp.com" target="_blank">Kevin.Cote@wsp.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FR-CA" link="#0563C1" vlink="#954F72">
<div class="m_4585730128278224890WordSection1">
<p class="MsoNormal"><span lang="EN-CA">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">I want to run GeoNode under DEBUG_STATIC mode to use modified non-minified javascript source code files. I installed GeoNode 2.6 with the Windows Installer and everything works fine. Here are my steps to try to use the
DEBUG_STATIC mode:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="m_4585730128278224890MsoListParagraph"><u></u><span lang="EN-CA"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-CA">Modify the GeoExplorer-Debug.js file (C:\GeoNode-2.6.x\geonode-2.6.<wbr>x\Lib\site-packages\<wbr>geoexplorer\static\<wbr>geoexplorer\script).<u></u><u></u></span></p>
<p class="m_4585730128278224890MsoListParagraph"><u></u><span lang="EN-CA"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-CA">Run the “virtualenv_local_setup.bat” file to get in the virtualenv.<u></u><u></u></span></p>
<p class="m_4585730128278224890MsoListParagraph"><u></u><span lang="EN-CA"><span>3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-CA">While in the virtualenv, I collected static file using python manage.py collecstatic (the file is being copied to static_root correctly).
<u></u><u></u></span></p>
<p class="m_4585730128278224890MsoListParagraph"><u></u><span lang="EN-CA"><span>4.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-CA">Edit local_settings.py and settings.py: set DEBUG and DEBUG_STATIC to true.<u></u><u></u></span></p>
<p class="m_4585730128278224890MsoListParagraph"><u></u><span lang="EN-CA"><span>5.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-CA">Restart apache2/jetty services.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">After doing that, GeoNode is still loading the minified version and not the debug version of the javascript source code for GeoExplorer.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">How can I set correctly the file/settings so that the GeoNode instance is running in debug mode ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">Kevin<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
<br>
NOTICE: This communication and any attachments ("this message") may contain information which is privileged, confidential, proprietary or otherwise subject to restricted disclosure under applicable law. This message is for the sole use of the intended recipient(s).
Any unauthorized use, disclosure, viewing, copying, alteration, dissemination or distribution of, or reliance on, this message is strictly prohibited. If you have received this message in error, or you are not an authorized or intended recipient, please notify
the sender immediately by replying to this message, delete this message and all copies from your e-mail system and destroy any printed copies. You are receiving this communication because you are listed as a current WSP contact. Should you have any questions
regarding WSP's electronic communications policy, please consult our Anti-Spam Commitment at
<a href="http://www.wsp.com/casl" target="_blank">www.wsp.com/casl</a>. For any concern or if you believe you should not be receiving this message, please forward this message to
<a href="mailto:caslcompliance@wsp.com" target="_blank">caslcompliance@wsp.com</a> so that we can promptly address your request. Note that not all messages sent by WSP qualify as commercial electronic messages.
<br>
<br>
AVIS : Ce message, incluant tout fichier l'accompagnant (« le message »), peut contenir des renseignements ou de l'information privilégiés, confidentiels, propriétaires ou à divulgation restreinte en vertu de la loi. Ce message est destiné à l'usage exclusif
du/des destinataire(s) voulu(s). Toute utilisation non permise, divulgation, lecture, reproduction, modification, diffusion ou distribution est interdite. Si vous avez reçu ce message par erreur, ou que vous n'êtes pas un destinataire autorisé ou voulu, veuillez
en aviser l'expéditeur immédiatement et détruire le message et toute copie électronique ou imprimée. Vous recevez cette communication car vous faites partie des contacts de WSP. Si vous avez des questions concernant la politique de communications électroniques
de WSP, veuillez consulter notre Engagement anti-pourriel au <a href="http://www.wsp.com/lcap" target="_blank">
www.wsp.com/lcap</a>. Pour toute question ou si vous croyez que vous ne devriez pas recevoir ce message, prière de le transférer au
<a href="mailto:conformitelcap@wsp.com" target="_blank">conformitelcap@wsp.com</a> afin que nous puissions rapidement traiter votre demande. Notez que ce ne sont pas tous les messages transmis par WSP qui constituent des messages electroniques commerciaux.
<br>
</font><br>
<font face="Arial" color="WhiteSmoke" size="0.10"><br>
<br>
-LAEmHhHzdJzBlTWfa4Hgs7pbKl </font>
</div>
<br>______________________________<wbr>_________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>