Skip to main content

UNKNOWN

Project description

A tiny library that adds asset pre-processor support to Django’s contrib.staticfiles.

The bundled contrib.staticfiles does most of what I want from an asset manager, but not quite all. Rather than replace it entirely with another asset manager, I wrote this little hack to add the missing piece. Now assets that need pre-processing (like LESS stylesheets, or Sprocketized JS files) get compiled dynamically in development and then written out as static files for serving in production.

Features:

  • Seamleess integration with contrib.staticfiles: Continue to use the static template tag and collectstatic command as normal.

  • Ships with support for LESS stylesheets and Sprockets-like JavaScript concatenation and minification.

  • Very simple API for defining new pre-processors.

  • Not a single line of my code needs to run in production: once you’ve run collectstatic, its work is done.

Read the documentation: http://django-staticfilesplus.evans.io

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-staticfilesplus-0.1dev.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file django-staticfilesplus-0.1dev.tar.gz.

File metadata

File hashes

Hashes for django-staticfilesplus-0.1dev.tar.gz
Algorithm Hash digest
SHA256 64341baf090f76341aee8183255b2e9e77b681a4746d9a6341c36387f45220b0
MD5 2d8ad069d2f3e683cbfb5d90391ea800
BLAKE2b-256 5fa3b3c97bf3b8f01f1c68d25f547bd27d9ec5380dbc66dc26bce80a19ff236f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page