Я пытаюсь отобразить виджет для входа в Google, но я этого не вижу, вот мой код:
Login Page
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
img {
border-radius: 50%;
width: 100px;
height: 100px;
object-fit: cover;
margin-top: 10px;
}
p {
color: #333;
margin: 10px 0;
}
a {
color: #007bff;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
.g_id_signin {
margin-top: 20px;
}
{% if request.session.user_data %}
Hi {{ request.session.user_data.given_name }}
Your email is {{ request.session.user_data.email }}
Click here to Sign out
{% else %}
Hi there
Click below to sign in with Google
data-type="standard"
data-shape="rectangular"
data-theme="filled_blue"
data-text="signin_with"
data-size="large"
data-logo_alignment="left">
{% endif %}
Подробнее здесь: https://stackoverflow.com/questions/785 ... l-template