Commit 23a0e1c5 by leonardo orozco

Merge pull request #526 from leonardoo/no-collector

adding the ability to disable the collector in develop
parents 6f661f07 6584caa1
...@@ -13,6 +13,8 @@ from django.utils.six import string_types ...@@ -13,6 +13,8 @@ from django.utils.six import string_types
DEFAULTS = { DEFAULTS = {
'PIPELINE_ENABLED': not _settings.DEBUG, 'PIPELINE_ENABLED': not _settings.DEBUG,
'PIPELINE_COLLECTOR_ENABLED': True,
'PIPELINE_ROOT': _settings.STATIC_ROOT, 'PIPELINE_ROOT': _settings.STATIC_ROOT,
'PIPELINE_URL': _settings.STATIC_URL, 'PIPELINE_URL': _settings.STATIC_URL,
......
...@@ -56,7 +56,8 @@ class PipelineMixin(object): ...@@ -56,7 +56,8 @@ class PipelineMixin(object):
method = getattr(self, "render_{0}".format(package_type)) method = getattr(self, "render_{0}".format(package_type))
return method(package, package.output_filename) return method(package, package.output_filename)
else: else:
default_collector.collect(self.request) if settings.PIPELINE_COLLECTOR_ENABLED:
default_collector.collect(self.request)
packager = Packager() packager = Packager()
method = getattr(self, "render_individual_{0}".format(package_type)) method = getattr(self, "render_individual_{0}".format(package_type))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment