[GeoNode-devel] DEBUG/DEBUG_STATIC mode with Windows installer deployment
Simone Dalmasso
simone.dalmasso at gmail.com
Mon Oct 30 06:49:01 PDT 2017
Hi Kevin,
Unfortunately Geoexplorer is not managed by the debug_static setting. You
would have to modify it manually
https://github.com/GeoNode/geonode/blob/master/geonode/templates/geonode/geo_header.html#L14
.
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.
Hope this helps.
2017-10-27 17:59 GMT+02:00 Côté, Kevin <Kevin.Cote at wsp.com>:
> Hi,
>
>
>
> 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:
>
>
>
> 1. Modify the GeoExplorer-Debug.js file
> (C:\GeoNode-2.6.x\geonode-2.6.x\Lib\site-packages\geoexplorer\static\
> geoexplorer\script).
>
> 2. Run the “virtualenv_local_setup.bat” file to get in the
> virtualenv.
>
> 3. While in the virtualenv, I collected static file using python
> manage.py collecstatic (the file is being copied to static_root correctly).
>
> 4. Edit local_settings.py and settings.py: set DEBUG and
> DEBUG_STATIC to true.
>
> 5. Restart apache2/jetty services.
>
>
>
> After doing that, GeoNode is still loading the minified version and not
> the debug version of the javascript source code for GeoExplorer.
>
>
>
> How can I set correctly the file/settings so that the GeoNode instance is
> running in debug mode ?
>
>
>
> Kevin
>
>
>
>
>
>
>
> ------------------------------
>
>
> 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 www.wsp.com/casl. For any concern or if you
> believe you should not be receiving this message, please forward this
> message to caslcompliance at wsp.com so that we can promptly address your
> request. Note that not all messages sent by WSP qualify as commercial
> electronic messages.
>
> 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 www.wsp.com/lcap. Pour toute question ou si vous croyez
> que vous ne devriez pas recevoir ce message, prière de le transférer au
> conformitelcap at wsp.com 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.
>
>
>
> -LAEmHhHzdJzBlTWfa4Hgs7pbKl
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>
--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20171030/0a7bb17c/attachment.html>
More information about the geonode-devel
mailing list