Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/e/s/ESP-Website-HEAD/esp/esp/dbmail/migrations/0002_defaultlists.py   ESP-Website(Download)
            list.description = 'Manual Email List Redirects'
            list.seq = 0
            list.save()
 
        list, created = EmailList.objects.get_or_create(regex='^\w(\d+)s(\d+)-(class|teachers|students)$', handler='SectionList')
        if created:
            list.description = 'Individual sections of a class'
            list.seq = 4
            list.save()
            list.description='Email Class Rosters'
            list.seq=5
            list.save()
 
        list, created = EmailList.objects.get_or_create(regex='^(.*)$', handler='UserEmail')
        if created:
            list.description = 'Aliases for all users'
            list.seq = 10
            list.subject_prefix='[%s]' % settings.ORGANIZATION_SHORT_NAME
            list.save()