[GeoNode-devel] customizing web pages for GeoNode 2.8

Toni Schönbuchner toni.schoenbuchner at csgis.de
Wed Mar 20 01:32:11 PDT 2019


Hi Michael,

> I don't want to customize GeoNode any further. I have to HTML files which I simply want to be loaded to replace the standard two pages
Well than do as I said without using geonode project. Do a backup of geonode index.html and place your own index.html in same folder.
(urls.py is already pointing to index.html)

> I have a production environment already. I don't want to mess around with docker or break my python installation with the creation of a virtualEnv (I don't know anything about python). 
Be careful. The apt setup is currently not maintained and has issues!
GeoNode is a complex system you should at least read the (some) django and installation docs to 
know what is happening. For example virtualEnv is exactly there to not end up in big mess!

> I installed Geonode with apt-get install geonode and I doubt that the setup of a dev environment on the prod server
Nobody suggested it! Of course in a live system you would install as production!
http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html <http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html>

> Is there no way to overwrite the default pages without having to modify the original source code? It must have worked for 2.6 but I have no idea what made GeoNode to load the two files but I am pretty sure that it was done by configuration without mofification of the urls.py
> 
This is why there is Geonode-project. To make customisations without touching the core files.

cheers,

Toni

> Am 19.03.2019 um 22:24 schrieb Michael Härtel <haerta at haerta.de>:
> 
> Hello again,
> 
> Thank you for your hints but now as I read a few web pages and instructions I believe that the DEV mode is not what I want. 
> 
> I don't want to customize GeoNode any further. I have to HTML files which I simply want to be loaded to replace the standard two pages
> I have a production environment already. I don't want to mess around with docker or break my python installation with the creation of a virtualEnv (I don't know anything about python). 
> I installed Geonode with apt-get install geonode and I doubt that the setup of a dev environment on the prod server
> Is there no way to overwrite the default pages without having to modify the original source code? It must have worked for 2.6 but I have no idea what made GeoNode to load the two files but I am pretty sure that it was done by configuration without mofification of the urls.py
> 
> Any ideas?
> 
> Thank you very much,
> 
> Michael
> 
> 
> 
> On 19/03/2019 15:23, Toni Schönbuchner wrote:
>> Hi Michael,
>> 
>> how did you install 2.8? 
>> 
>> As Francesco already said for customisation you should use geonode project.
>> Find here a good overview how to work with it: 
>> http://geonode.org/dev-workshop/ <http://geonode.org/dev-workshop/>
>> 
>> In case you really want to change the core files ( and might run into problems on next update )
>> you can of course integrate your static html files within the geonode core.
>> 
>> You would put those into templates directory:
>> https://github.com/GeoNode/geonode/tree/master/geonode/templates <https://github.com/GeoNode/geonode/tree/master/geonode/templates>
>> 
>> and change your urls.py to your needs:
>> https://github.com/GeoNode/geonode/blob/master/geonode/urls.py#L61 <https://github.com/GeoNode/geonode/blob/master/geonode/urls.py#L61>
>> 
>> Again this is not advisable. 
>> 
>> Best regards,
>> 
>> Toni
>> 
>> -----------------------------------------------
>> CSGIS
>> 
>> -----------------------------------------------
>> Kolonnadenstraße 1
>> 04109 Leipzig
>> -----------------------------------------------
>> Tel 		+49/ (0) 341 24 04 738
>> Fax 		+49/ (0) 341 24 04 739
>> Web		http://csgis.de <http://csgis.de/>
>> -----------------------------------------------
>> 
>> Hinweis gemäß § 33 BDSG
>> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den 
>> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich 
>> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht 
>> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, 
>> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>> 
>>> Am 19.03.2019 um 15:05 schrieb geonode-devel-request at lists.osgeo.org <mailto:geonode-devel-request at lists.osgeo.org>:
>>> 
>>> Message: 1
>>> Date: Tue, 19 Mar 2019 12:22:13 +0100
>>> From: Michael Härtel <haerta at haerta.de <mailto:haerta at haerta.de>>
>>> To: Francesco Bartoli <xbartolone at gmail.com <mailto:xbartolone at gmail.com>>,
>>> 	geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>
>>> Subject: Re: [GeoNode-devel] customizing web pages for GeoNode 2.8
>>> Message-ID: <01fd8f4d-0fa7-d02b-c028-d95c0a94cec0 at haerta.de <mailto:01fd8f4d-0fa7-d02b-c028-d95c0a94cec0 at haerta.de>>
>>> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>>> 
>>> Thank you very much for the link but I am aware that is the recommended 
>>> way to customize the look & feel.
>>> 
>>> But since it was not necessary for the old installation to create such a 
>>> project I would also like to avoid these steps for the 2.8 installation 
>>> (if possible).
>>> 
>>> Regards,
>>> 
>>> Michael
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190320/225dc299/attachment-0001.html>


More information about the geonode-devel mailing list