File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11from __future__ import unicode_literals
22
3+ import logging
4+
35from django .contrib .staticfiles .storage import staticfiles_storage
46
57from django import template
1214from ..packager import Packager , PackageNotFound
1315from ..utils import guess_type
1416
17+ logger = logging .getLogger (__name__ )
1518
1619register = template .Library ()
1720
@@ -73,6 +76,7 @@ def render(self, context):
7376 try :
7477 package = self .package_for (package_name , 'css' )
7578 except PackageNotFound :
79+ logger .warn ("Package %r is unknown. Check PIPELINE_CSS in your settings." , package_name )
7680 return '' # fail silently, do not return anything if an invalid group is specified
7781 return self .render_compressed (package , 'css' )
7882
@@ -101,6 +105,7 @@ def render(self, context):
101105 try :
102106 package = self .package_for (package_name , 'js' )
103107 except PackageNotFound :
108+ logger .warn ("Package %r is unknown. Check PIPELINE_JS in your settings." , package_name )
104109 return '' # fail silently, do not return anything if an invalid group is specified
105110 return self .render_compressed (package , 'js' )
106111
You can’t perform that action at this time.
0 commit comments