I get this error if I have both django-imagekit and django-debug-toolbar installed:
'compat' is not a valid tag library: Template library imagekit.templatetags.compat does not have a variable named 'register'
It looks like both django-imagekit and django-debug-toolbar have a templatetag file named compat.py.