Code cleanup

* Remove unnecessary debug and comments.
* Make the (future) need for the Django 1.7 change more visible.
* Switch from django.VERSION to get_version().