Reliably saving URLs to a file field

Jan. 27, 2010
by Kevin Fricovsky
7:16 a.m.

Chris Adams saves you the trouble if you're looking to easily save a remote file locally via HTTP by using Django's NamedTemporaryFile and urllib2.