The same static compression failure can be seen in Horizon.
(.venv)drf@drf-VirtualBox:~/horizon$ python manage.py compress --forceFound 'compress' tags in:
/home/drf/horizon/horizon/templates/horizon/_scripts.html
/home/drf/horizon/horizon/templates/horizon/_conf.html
/home/drf/horizon/openstack_dashboard/templates/_stylesheets.html
CommandError: An error occured during rendering /home/drf/horizon/horizon/templates/horizon/_scripts.html: 'horizon/lib/bootstrap_datepicker/locales/bootstrap-datepicker..js' could not be found in the COMPRESS_ROOT '/home/drf/horizon/static' or with staticfiles.
problem is the the locale isn't set at all, so an unexpected (and non-existent) filename is created.
Additionally, the language file can't be selected at compression time anyway - this needs to be computed per-request so that different languages can be served to different users.
The same static compression failure can be seen in Horizon.
(.venv) drf@drf- VirtualBox: ~/horizon$ python manage.py compress --forceFound 'compress' tags in: drf/horizon/ horizon/ templates/ horizon/ _scripts. html drf/horizon/ horizon/ templates/ horizon/ _conf.html drf/horizon/ openstack_ dashboard/ templates/ _stylesheets. html horizon/ horizon/ templates/ horizon/ _scripts. html: 'horizon/ lib/bootstrap_ datepicker/ locales/ bootstrap- datepicker. .js' could not be found in the COMPRESS_ROOT '/home/ drf/horizon/ static' or with staticfiles.
/home/
/home/
/home/
CommandError: An error occured during rendering /home/drf/
problem is the the locale isn't set at all, so an unexpected (and non-existent) filename is created.
Additionally, the language file can't be selected at compression time anyway - this needs to be computed per-request so that different languages can be served to different users.