Comment 2 for bug 1373430

Revision history for this message
Doug Fish (drfish) wrote :

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.