Fix issues with Django example