Skip to content

Commit 23a0e1c

Browse files
committed
Merge pull request jazzband#526 from leonardoo/no-collector
adding the ability to disable the collector in develop
2 parents 6f661f0 + 6584caa commit 23a0e1c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pipeline/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
DEFAULTS = {
1414
'PIPELINE_ENABLED': not _settings.DEBUG,
1515

16+
'PIPELINE_COLLECTOR_ENABLED': True,
17+
1618
'PIPELINE_ROOT': _settings.STATIC_ROOT,
1719
'PIPELINE_URL': _settings.STATIC_URL,
1820

pipeline/templatetags/pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def render_compressed(self, package, package_type):
5656
method = getattr(self, "render_{0}".format(package_type))
5757
return method(package, package.output_filename)
5858
else:
59-
default_collector.collect(self.request)
59+
if settings.PIPELINE_COLLECTOR_ENABLED:
60+
default_collector.collect(self.request)
6061

6162
packager = Packager()
6263
method = getattr(self, "render_individual_{0}".format(package_type))

0 commit comments

Comments
 (0)