def index_view(request):
    extra_context = {
        'version': settings.__version__,
        'status': settings.__status__,
        'debug_mode': settings.DEBUG,
        #'cache_timeout': 500,
    }

    if request.user.is_anonymous():
        messages.warning(request, _("Hi! It seems that it's your first time \
        here. Maybe you want to <a href=\"/accounts/register\">register</a> \
        or <a href=\"/accounts/login/\">login</a> if you have an account."))

        return render_to_response('site_index.html', extra_context,
                              context_instance=RequestContext(request))
    else:
        return HttpResponseRedirect(reverse('profile_overview'))
Main view for the index page. It's separated from the urls.py file
dataset/ETHPy150Open cidadania/ecidadania-ng/src/ecidadania/views/index.py/index_view