Skip to content
Snippets Groups Projects
  1. Jul 24, 2015
  2. Jul 21, 2015
  3. Jul 17, 2015
  4. Jul 16, 2015
  5. Jul 15, 2015
    • Alice Heaton's avatar
      Use django_assets to manage our assets and ensure we can minify js/css,... · 9460c268
      Alice Heaton authored
      Use django_assets to manage our assets and ensure we can minify js/css, compile less files, and merge all js/css into a single file. For this to work in production, all assets must be statically defined in his/assets.py. To ensure the correct js/css is included, views can invoke hid.assets.require_assets which will raise an exception if the asset is missing. This also has the advantage of making clear which part of the code depends on a given asset. The admin command in django_asset library's latest release does not work with the latest Django - so we use a version pulled from git. See https://github.com/miracle2k/django-assets/issues/52
      9460c268
Loading