added TEMPLATE_CONTEXT_PROCESSORS on settings.py and context_instance=RequestContext(request) on views.py