misc: fix serving of minified file in production environment (#8506)
This commit is contained in:
parent
a6c187a4f6
commit
acb49b1352
|
@ -12,7 +12,7 @@ def xstatic(modname, filename):
|
|||
cdns = settings.CDNS
|
||||
except AttributeError:
|
||||
cdns = []
|
||||
if not settings.DEBUG:
|
||||
if settings.DEBUG:
|
||||
filename = filename.replace('.min.', '.')
|
||||
|
||||
if cdns:
|
||||
|
|
Loading…
Reference in New Issue