def loudfail_static(*args, **kwargs):
result = staticfiles_storage.url(*args, **kwargs)
if not result:
raise ObjectDoesNotExist(
"Cannot find static file with: {} {}".format(args, kwargs))
else:
return result
文章目录