TransWikia.com

Overriding Geonode templatetag file

Geographic Information Systems Asked by Falcoa on December 17, 2020

I’m customizing Geonode through the geonode-project template. To override geonode templates it’s ok, but now I need to override a template tag file.

I customized the ‘SUPPORTED_CRS’ in my_geonode/settings.py to list the EPSG codes that I want, but, in order to show their names instead of the codes, I need to override the object EPSG_CODE_MATCHES that is defined in the geonode/layers/templatetags/layer_tags.py

How can I override this?

One Answer

Found it. It's just a matter of creating a templatetags folder, with an __init__.py file inside, copy the layers_tags.py to this folder and edit it as wished. Run the application again so the .pyc file is generated. Now the customized file is recognized and overrides the one from geonode/layers/templatetags.

Answered by Falcoa on December 17, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP