Fix a few issues related to new changes in django 1.7

Updated django-1.7-template is ready to work.