code sample to training python/django