Fix redirect error for Django 1.5
Fix redirect and urls error for django 1.5
Merge branch 'development' of github.com:visgence/portcullis into development