[Answer]-How to use Django for rendering class based python file?

1👍

ok in your urls.py

Change the format

 url(r'^temp/$', text_extract), 

I am assuming you have text_extract in your views

In your views.py

def text_extract(request):
    # do your stuff

    return render_to_response('TwitterApi.html', {'link': key, 'count':self.counter}) 

Leave a comment