def logout(request):
    '\n    Logs user out but keep authorization ot OAuth GitHub\n\n    arguments:\n        :request: GET HTTP request\n\n    returns:\n        Redirects to index\n    '
    request.session['github_token'] = None
    request.session['github_info'] = None
    return HttpResponseRedirect(reverse('index'))
Logs user out but keep authorization ot OAuth GitHub

arguments:
    :request: GET HTTP request

returns:
    Redirects to index
def logout(request):
    '\n    Logs user out but keep authorization ot OAuth GitHub\n\n    arguments:\n        :request: GET HTTP request\n\n    returns:\n        Redirects to index\n    '
    request.session['github_token'] = None
    request.session['github_info'] = None
    return HttpResponseRedirect(reverse('index'))