miracle2k / django-assets

Django webassets integration.
BSD 2-Clause "Simplified" License
89 stars 79 forks source link

%(version)s Expire using the filename #18

Open arky opened 11 years ago

arky commented 11 years ago

When I build assets %(version)s doesn't expand:

./manage.py assets build Building bundle: css/common.min%(version)s.css 2013-05-24 08:26:56,786 INFO Building bundle: css/common.min%(version)s.css Building bundle: js/editor.min%(version)s.js 2013-05-24 08:26:56,794 INFO Building bundle: js/editor.min%(version)s.js Building bundle: js/admin.min%(version)s.js 2013-05-24 08:26:56,799 INFO Building bundle: js/admin.min%(version)s.js Building bundle: css/editor.min%(version)s.css 2013-05-24 08:26:56,800 INFO Building bundle: css/editor.min%(version)s.css Building bundle: js/common.min%(version)s.js 2013-05-24 08:26:56,801 INFO Building bundle: js/common.min%(version)s.js Building bundle: css/custom/custom.min%(version)s.css 2013-05-24 08:26:56,805 INFO Building bundle: css/custom/custom.min%(version)s.css Building bundle: css/admin.min%(version)s.css 2013-05-24 08:26:56,805 INFO Building bundle: css/admin.min%(version)s.css

Using Django_assets 0.8 version and Django 1.4.5: https://github.com/arky/pootle/blob/master/requirements/base.txt

Source: https://github.com/arky/pootle/blob/c2cf4134178ecbc2617cd061ae91383b72ed6206/pootle/apps/pootle_app/assets.py

miracle2k commented 11 years ago

Are you sure? The files itself should be expanded. The message is printed before the build and thus doesn't know the version yet. Admittedly, that's not very nice.

arky commented 11 years ago

@miracle2k You are right. Realized that files did expand. However I was confused by the printed messages.