python
1<!DOCTYPE html> 2<html lang="ja-jp"> 3<head> 4 <title>投稿一覧</title> 5</head> 6<body> 7 <h1> ようこそ、ブログへ</h1> 8 9 <h2>最新の投稿</h2> 10 {% for post in posts.all %} 11 {{ post.title }} 12 {% endfor %} 13</body> 14</html>
上記のコードの10行目である{% for post in posts.all %}で
Error during template rendering
Cannot resolve keyword 'punlished' into field. Choices are: body, id, image, published, title
というエラーが起きます
なぜだか分かりません よろしく御願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/08/22 06:36