Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update media_bundler/conf/default_settings.py #10

Merged
merged 1 commit into from

2 participants

@djrodgerspryor

Added a support for a 'FORCE_BUNDLES' flag in settings to use bundling with DEBUG=True

@djrodgerspryor djrodgerspryor Update media_bundler/conf/default_settings.py
Added a support for a 'FORCE_BUNDLES' flag in settings to use bundling with DEBUG=True
6e97007
@rnk rnk merged commit cf2145a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 13, 2013
  1. @djrodgerspryor

    Update media_bundler/conf/default_settings.py

    djrodgerspryor authored
    Added a support for a 'FORCE_BUNDLES' flag in settings to use bundling with DEBUG=True
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 media_bundler/conf/default_settings.py
View
5 media_bundler/conf/default_settings.py
@@ -11,8 +11,9 @@
# This flag determines whether to enable bundling or not. To assist in
# debugging, we recommend keeping files separate during development and bundle
# them during production, so by default we just use settings.DEBUG, but you can
-# override that value if you wish.
-USE_BUNDLES = not settings.DEBUG
+# override that value if you wish by setting FORCE_BUNDLES to True in your
+# settings file.
+USE_BUNDLES = getattr(settings, 'FORCE_BUNDLES', False) or not settings.DEBUG
# This puts your JavaScript at the bottom of your templates instead of the top
# in order to allow the page to load before script execution, as described in
Something went wrong with that request. Please try again.