This question already has an answer here:
- Overriding GeoNode template? 2 answers
I have a fresh installation of GeoNode 2.6 on Ubuntu 16.04. The Web site is accessible, however, we are experiencing issues with the "template-overriding" feature.
I'm aware of GeoNode 2.6 problem template overriding.
I have read the doc about "theming" GeoNode. (I could have missed something though, feel free to point it out if that's the case)
From my understanding if I put my HTML sources in /etc/geonode/templates they should override the default sources (that's the behaviour I'm seeking) and the page should update automatically. However that does not seem to be the case. In fact nothing happens (apparently) when I do the latter. I even tried executing the following commands to no avail.
geonode collectstatic service apache2 restart
My local_settings.py seem all right
GEONODE_ROOT = os.path.dirname(geonode.__file__) TEMPLATE_DIRS = ( '/etc/geonode/templates', os.path.join(GEONODE_ROOT, 'templates'), ) # Additional directories which hold static files STATICFILES_DIRS = [ '/etc/geonode/media', os.path.join(GEONODE_ROOT, 'static'), ]
Is it possible use my templates by putting them in /etc/geonode/templates (as mentioned here) in order to theme GeoNode?
If possible how can that be done ?
If not possible, why is it not?