Is there any other way to resolve this? Maybe like you had it before:

    redirect_url = str(settings.LOGIN_REDIRECT_URL)

Or would that introduce some sort of circular dependency?