Django 1.7 adaptations part 1

Make everything importable in Django 1.7.
Make some of the views usable (blog, comments and profiles).

Change-Id: Id5835d927b92ef75bf03061cf415ce74aeed9e3e