PAOV 4 years ago
parent 97880dab54
commit 26b543fa1c
  1. 11
      choose/templates/login.html
  2. 3
      tea/settings.py

@ -5,14 +5,7 @@
<title>Login</title>
</head>
<body>
<div class="log-form">
<h2>Login to your account</h2>
<form method="POST">
{% csrf_token %}
<input id="username" name="username" type="username" title="username" placeholder="username" />
<input id="password" name="password" type="password" title="username" placeholder="password" />
<button type="submit" class="btn">Login</button>
</form>
</div>
<script async src="https://telegram.org/js/telegram-widget.js?21" data-telegram-login="PAOV_Tea_bot" data-size="large"
data-auth-url="https://tea.paov.ru/auth/complete/telegram" data-request-access="write"></script>
</body>
</html>

@ -45,6 +45,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'social_django',
'corsheaders',
'choose'
]
@ -127,7 +128,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.1/howto/static-files/
STATIC_URL = 'static/'
STATIC_ROOT = f'{BASE_DIR}/static'
# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field

Loading…
Cancel
Save