add compatibility with old Django
add support for loaddata command on Django 1.4 and 1.5