adding 1.7 support

After talking with @patrickmpoon, this seems like the only fix for this problem.

To be compatible with 1.6 the django module might not have a setup method