adapting to Django