def reload_artists(): global artist_thread print "STARTING PULLDOWN" for a in Artist.objects.all(): print " %s" % (a.name,) scraper.info_for_artist(a.name, a) scraper.albums_for_artist(a.name, a) print "ENDING PULLDOWN" artist_thread = None
def view_artist(req, n): a = Artist.objects.get(slug=n) scraper.info_for_artist(a.name, a) scraper.albums_for_artist(a.name, a) return tmpl("artist.html", artist=a)