Djangoで同じモデルからModelFormとAdminでCreate画面を作成。
ModelForm
Admin
import asyncio import aiohttp @asyncio.coroutine def download(url): response = yield from aiohttp.request('GET', url) return (yield from response.read_and_close()) urls = ['http://www.yahoo.co.jp', 'http://www.google.co.jp'] loop = asyncio.get_event_loop() f = asyncio.wait([download(u) for u in urls]) r = loop.run_until_complete(f) for i in r[0]: print(i.result())asyncio.waitは複数のコルーチンを1つのFutureにまとめる