質問編集履歴

5

不要部分の削除

2017/02/13 08:38

投稿

PYPP
PYPP

スコア51

test CHANGED
File without changes
test CHANGED
@@ -16,42 +16,12 @@
16
16
 
17
17
  ###ソースコード
18
18
 
19
- post_detail.html
19
+ ページ表示のhtmlから抜粋
20
20
 
21
21
  ```
22
22
 
23
- {% extends 'posts/base.html' %}
23
+ <input type="button" value="NEXT" onClick="location.href='/post/{{ post.id|add:"1" }}/';">
24
24
 
25
-
26
-
27
- {% block content %}
28
-
29
- <div class="post">
30
-
31
- {% if post.published_date %}
32
-
33
- <div class="date">
34
-
35
- {{ post.published_date }}
36
-
37
- </div>
38
-
39
- {% endif %}
40
-
41
-
42
-
43
- <input type="button" value="編集" onClick="location.href='/post/{{ post.id }}/edit';">
44
-
45
- <h1>{{ post.title }}</h1>
46
-
47
- <p>{{ post.text|linebreaks }}</p>
48
-
49
- <input type="button" value="NEXT" onClick="location.href='/post/{{ post.id|add:"1" }}/';">
50
-
51
- <input type="button" value="BEFORE" onClick="location.href='/post/{{ post.id|add:"-1" }}/';">
25
+ <input type="button" value="BEFORE" onClick="location.href='/post/{{ post.id|add:"-1" }}/';">
52
-
53
- </div>
54
-
55
- {% endblock %}
56
26
 
57
27
  ```

4

タイトル修正

2017/02/13 08:38

投稿

PYPP
PYPP

スコア51

test CHANGED
@@ -1 +1 @@
1
- ボタンの遷移の失敗
1
+ ボタンの遷移エラー
test CHANGED
File without changes

3

タイトル修正

2017/02/11 16:19

投稿

PYPP
PYPP

スコア51

test CHANGED
@@ -1 +1 @@
1
- クエリ取得
1
+ ボタン遷移の失敗
test CHANGED
File without changes

2

マークの追加

2017/02/11 13:24

投稿

PYPP
PYPP

スコア51

test CHANGED
File without changes
test CHANGED
File without changes

1

詳説

2017/02/11 10:33

投稿

PYPP
PYPP

スコア51

test CHANGED
@@ -1 +1 @@
1
- クエリのないものについて
1
+ クエリの取得
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ###前提・目標
2
2
 
3
- チュートリアルでブログの作成に挑戦しました。そのブログを土台に、自分のブログを作りたいと思っています。そこで、「NEXT」「BEFORE」ボタンを追加しました。最新の投稿で「NEXT」、最初の投稿で「BEFORE」をそれぞれ押すと、エラーが出てしまいました。
3
+ チュートリアルでブログの作成に挑戦しました。そのブログを土台に、自分のブログを作りたいと思っています。そこで、「NEXT」「BEFORE」ボタンを追加しました。最新の投稿で「NEXT」、最初の投稿で「BEFORE」をそれぞれ押すと、エラーが出てしまいました。クエリがないので当然なのですが、クエリがなくなった際にボタンが消えるようにしたく思っております。
4
4
 
5
5
 
6
6