def index(request, url=None): if url is None: return render_to_response('mnm/index.html', {}) else: m = MailNoMore() result = m.parse(url) if result == False: return HttpResponseRedirect('/mnm') return render_to_response('mnm/index.html', {'article':result, 'url':url})
def fetch(request): m = MailNoMore() result = m.parse(request.GET['url']) return HttpResponse(result)