首页 > 解决方案 > 如何在 django 上检索使用 google 登录的用户的照片个人资料 url

问题描述

存档.html:

<div class="img-description">
        <img src="{{ user.urlprofile }}" class="avatar-url" alt="">
        {% if user.get_full_name != '' %}
            <span id="helloUser-des" class="mr-2 d-none d-lg-inline text-gray-600 small">{{ user.first_name | title }}!</span> 
        {% else %}
            <span id="helloUser-des" class="mr-2 d-none d-lg-inline text-gray-600 small">{{ user.username | title}}!</span>!</span>
        {% endif%}
    </div>

非常感谢您提前

标签: djangogoogle-oauth

解决方案


推荐阅读