Вот, код скрипта:
def spider_episode(request):
account = request.user
if account.is_authenticated():
if request.method == 'POST':
url = request.POST['main_url']
doc = urllib.urlopen(url).read()
show_name = BeautifulSoup(''.join(doc)).findAll('div', {"class" : "title"})[0].find("a").contents[0]
show = TVShow.objects.get(original_name = show_name)
return render_to_response('spider.html', {'episode': True, 'show': show_name, }, context_instance=RequestContext(request))
return render_to_response('spider.html', {'episode': True}, context_instance=RequestContext(request))
Может кто-нибудь подсказать в чем проблема? Заранее спасибо.