Closed miguelangelch closed 1 year ago
@miguelangelch the location of the templates can be changed in the dockerfile RUN ckan config-tool "${APP_DIR}/production.ini" "ckan.template_directory = /usr/lib/python3.8/site-packages/ckanext/stomallorca_theme/templates"
Closing since no response from OP
Describe the bug We have developed a custom theme for CKAN: https://github.com/perecanet/ckanext-stomallorca_theme
Based on the Dockerfile extension example, we have installed some extensions included the custom theme. This is the Dockerfile:
The build works, we are able to generate the Docker image, and run the docker compose, however, checking the CKAN website we see that the style is mixed between the custom theme and the original theme:
Why?
Seems that the default templates and public paths are /srv/app/src/ckan/ckan/public and /srv/app/src/ckan/ckan/templates, however, the installation of the custom theme plugin is stored in /usr/lib/python3.8/site-packages/ckanext/stomallorca_theme/ which contains the public and templates folders must use.
We have tried to change the default paths for public and templates but is not able to change it so we have keep it as default:
Docker images affected
Logs 2023-04-12 14:09:56,944 INFO [ckan.cli] Using configuration file /srv/app/production.ini 2023-04-12 14:09:56,944 INFO [ckan.config.environment] Loading static files from public 2023-04-12 14:09:57,096 INFO [ckan.config.environment] Loading templates from /srv/app/src/ckan/ckan/templates 2023-04-12 14:09:57,612 INFO [ckan.config.environment] Loading templates from /srv/app/src/ckan/ckan/templates 2023-04-12 14:09:59,867 INFO [ckan.cli] Using configuration file /srv/app/production.ini 2023-04-12 14:09:59,868 INFO [ckan.config.environment] Loading static files from public 2023-04-12 14:09:59,996 INFO [ckan.config.environment] Loading templates from /srv/app/src/ckan/ckan/templates