djangoでWEBアプリ作成しており、ログインフォームでログインボタンの横に、勝手にパスが出てきてしまい困っています。
http://127.0.0.1:8000/accounts/login/にアクセスでの表示は以下のように表示され問題ないのですが、
http://127.0.0.1:8000/accounts/login/?next=/diary-detail/20/にアクセスした際は以下のようにパスが表示され困っています。
ログインページのhtmlは以下です。
html
1{% extends 'base.html' %} 2 3{% block titile %}ログイン | ToRevi{% endblock %} 4 5{% block actiove_login %}active{% endblock %} 6 7{% block contents %} 8 9<div class="container"> 10 <div clas="row"> 11 <div class="my-div-style"> 12 <h1>Log In</h1> 13 <form method="post" action="{% url 'account_login' %}"> 14 {% csrf_token %} 15 16 {{ form.as_p }} 17 18 {% if redirect_field_value %} 19 <input type="hiddden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/> 20 21 {% endif %} 22 23 <button class="btn btn-primary" type="submit">ログイン</button> 24 <p><a class="button secondaryAction" href="{% url 'account_reset_password' %}">パスワードを忘れましたか?</a></p> 25 </form> 26 </div> 27 </div> 28</div> 29 30{% endblock %}
ご教示お願い致します。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/03/20 10:47