def login(request, provider):
    if not isinstance(request.user, AnonymousUser):
        return redirect(settings.LOGIN_REDIRECT_URL)

    if 'code' not in request.GET:
        return _redirect(request, provider)
    else:
        return _login(request, provider)
Method should be called to destroy the namespace and will take care
dataset/ETHPy150Open demianbrecht/django-sanction/django_sanction/views.py/login--crossover with--dataset/ETHPy150Open rapyuta/rce/rce-core/rce/core/network.py/Namespace.destroy