_reportlab_version = tuple(map(int, reportlab.Version.split('.')))
if _reportlab_version < (2, 1):
    raise ImportError('Reportlab Version 2.1+ is needed!')
REPORTLAB22 = _reportlab_version >= (2, 2)
xhtml2pdf ImportError — Джанго