Last active
August 29, 2015 14:11
-
-
Save wegorich/34e1ba377d75853edb06 to your computer and use it in GitHub Desktop.
How generate path to assets at Django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| css_css = Bundle( | |
| 'css/css.css', | |
| filters=['cssrewrite'], | |
| output='compiled_css.%(version)s{0}.css'.format(settings.GLOBAL_CACHE_LETTER)) | |
| register('css', css_css) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% assets 'css' %} | |
| <link rel="stylesheet" href="{{ ASSET_URL }}"> | |
| {% endassets %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment