Port localwiki to Django 1.6