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 1
1
from __future__ import unicode_literals
2
2
3
+ import logging
4
+
3
5
from django .contrib .staticfiles .storage import staticfiles_storage
4
6
5
7
from django import template
12
14
from ..packager import Packager , PackageNotFound
13
15
from ..utils import guess_type
14
16
17
+ logger = logging .getLogger (__name__ )
15
18
16
19
register = template .Library ()
17
20
@@ -73,6 +76,7 @@ def render(self, context):
73
76
try :
74
77
package = self .package_for (package_name , 'css' )
75
78
except PackageNotFound :
79
+ logger .warn ("Package %r is unknown. Check PIPELINE_CSS in your settings." , package_name )
76
80
return '' # fail silently, do not return anything if an invalid group is specified
77
81
return self .render_compressed (package , 'css' )
78
82
@@ -101,6 +105,7 @@ def render(self, context):
101
105
try :
102
106
package = self .package_for (package_name , 'js' )
103
107
except PackageNotFound :
108
+ logger .warn ("Package %r is unknown. Check PIPELINE_JS in your settings." , package_name )
104
109
return '' # fail silently, do not return anything if an invalid group is specified
105
110
return self .render_compressed (package , 'js' )
106
111
You can’t perform that action at this time.
0 commit comments