update demo project for compatibility with Django 1.7