ADDED: Back-end Django code