Я пытаюсь настроить свой админ-сайт в django с помощью шаблона, похожего на терминал.
1. Какое действие формы направить администратору домой?
2. Мой, так как страница является терминальной, нажатие клавиши ввода отправляет форму, как я могу отложить получение имени пользователя и пароля перед отправкой?
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
...
<!-- admin form -->
<form name="adminform" method="POST" action="{% url '???' %}" >
{% csrf_token %}
<!-- {{ form.as_p }} -->
<p class="search__form" >
login: <input type="text" class="input search__input" id="username" placeholder="" name="search" {{form.username}} autofocus />
</p>
</form>
<!-- my javascript checks if input starts with a '$' sign then it is the username, if it begins with a '.' it is a password, I want to combine the two and send for admin authentication -->
</body>
</html>