Ejemplo n.º 1
0
def run():
    fn = "straydata-9-8-2012-8-15-52-AM.csv"
    csv_file = open("%s/../fixtures/%s" % (os.path.dirname(__file__), fn))
    contents = csv.reader(csv_file, dialect='excel', delimiter=',')
    header = contents.next()
    for index, row in enumerate(contents):
        populate.apply_async(args=[row], countdown=index)
Ejemplo n.º 2
0
def run():
    fn = "straydata-9-8-2012-8-15-52-AM.csv"
    csv_file = open("%s/../fixtures/%s" % (os.path.dirname(__file__), fn))
    contents = csv.reader(csv_file, dialect='excel', delimiter=',')
    header = contents.next()
    g = geocoders.Google('AIzaSyAZoNPSlRTETltbmJvgYYqol0SLAVBgKs')
    for index, row in enumerate(contents):
        populate.apply_async(args=[row], countdown=index)