def handle(self, *args, **options):
if not all(getattr(settings, name) for name in ['FXA_ACCESS_KEY_ID',
'FXA_SECRET_ACCESS_KEY',
'FXA_S3_BUCKET']):
raise CommandError('FXA S3 Bucket access not configured')
main()
if options['cron']:
log('cron schedule starting')
schedule.start()
评论列表
文章目录