質問編集履歴

1

エラー内容詳細更新

2022/03/22 12:42

投稿

deango
deango

スコア161

test CHANGED
File without changes
test CHANGED
@@ -2,6 +2,17 @@
2
2
  runserverすると以下のエラーになります。
3
3
  ```エラー
4
4
  リレーション"django_session"は存在しません LINE 1: ...ession_data", "django_session"."expire_date" FROM "django_se... ^
5
+ ```
6
+
7
+ エラーの発生箇所は以下の{% if user.is_authenticated %}です。
8
+ ```base.html
9
+ <ul class="navbar-nav mx-auto mt-3">
10
+ {% if user.is_authenticated %}
11
+ <li class="nav-item">
12
+ {% include 'search.html' %}
13
+ </li>
14
+ {% endif %}
15
+ </ul>
5
16
  ```
6
17
 
7
18
  setting.pyは以下のようにしています。