a practice code in django