GeoNode / geonode-project

A django template project for creating custom GeoNode projects.
http://geonode.org
79 stars 174 forks source link

Templates and static files can't be overrided for 3.3.x #296

Closed MoRadwan74 closed 2 years ago

MoRadwan74 commented 2 years ago

Hello there, I've got two issues while trying to customize the UI of geonode-project-3.3.x with docker.

  1. When I try to add styles to site_base.css then do:

    docker-compose exec django python manage.py collectstatic --no-input

    nothing gets collected showing the message 0 static files copied to '/mnt/volumes/statics/static', 2943 unmodified.

  2. Customizing the site_base.html and site_index.html with geonode blocks has no effect on the UI also.

    {% block bigsearch %}
    <h1>Hello there!</h1>
    {% endblock bigsearch %}

It's worth noting that the changes which are done locally are not reflected in the project files inside the docker containers.

Update: I found out that the changes are reflected only after re-building django image. Shouldn't they be reflected for any restart?