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> <title>Login</title>
</head> </head>
<body> <body>
<div class="log-form"> <script async src="https://telegram.org/js/telegram-widget.js?21" data-telegram-login="PAOV_Tea_bot" data-size="large"
<h2>Login to your account</h2> data-auth-url="https://tea.paov.ru/auth/complete/telegram" data-request-access="write"></script>
<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>
</body> </body>
</html> </html>

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

Loading…
Cancel
Save