質問編集履歴
4
不要部分の削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,166 +2,4 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
Python(Django)の[チュートリアル](https://djangogirlsjapan.gitbooks.io/workshop_tutorialjp/content/css/)でブログの作成に挑戦しました。ここで使ったブログを土台に、自分のブログを作りたいと思っています。そこで、Bootstrapを使わずに作りたいと思い、htmlを編集すると一部の機能がなくなってしまいました。
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
###編集部分
|
12
|
-
|
13
|
-
before
|
14
|
-
|
15
|
-
①ページ一覧画面:post_list.html
|
16
|
-
|
17
|
-
![イメージ説明](aabf1fc7d2177aec1474be79bf011109.png)
|
18
|
-
|
19
|
-
②ページ詳細画面:post_detail.html
|
20
|
-
|
21
|
-
![イメージ説明](5ed7d9cf166b2f33bab735e7839f9bf2.png)
|
22
|
-
|
23
|
-
```ここに言語を入力
|
24
|
-
|
25
|
-
{% load staticfiles %}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<html>
|
30
|
-
|
31
|
-
<head>
|
32
|
-
|
33
|
-
<title>Blog</title>
|
34
|
-
|
35
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
36
|
-
|
37
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
|
38
|
-
|
39
|
-
<link href="http://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
40
|
-
|
41
|
-
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
|
42
|
-
|
43
|
-
</head>
|
44
|
-
|
45
|
-
<body>
|
46
|
-
|
47
|
-
<div class="page-header">
|
48
|
-
|
49
|
-
<a href="/post/new/" class="top-menu"><span class="glyphicon glyphicon-plus"></span></a>
|
50
|
-
|
51
|
-
<h1><a href="/">Blog</a></h1>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<div class="content container">
|
58
|
-
|
59
|
-
<div class="row">
|
60
|
-
|
61
|
-
<div class="col-md-8">
|
62
|
-
|
63
|
-
{% block content %}
|
64
|
-
|
65
|
-
{% endblock %}
|
66
|
-
|
67
|
-
</div>
|
68
|
-
|
69
|
-
</div>
|
70
|
-
|
71
|
-
</div>
|
72
|
-
|
73
|
-
</body>
|
74
|
-
|
75
|
-
</html>
|
76
|
-
|
77
|
-
```
|
78
|
-
|
79
|
-
after
|
80
|
-
|
81
|
-
①ページ一覧画面:post_list.html
|
82
|
-
|
83
|
-
※ +ボタンが消失
|
84
|
-
|
85
|
-
![イメージ説明](0c82a3f35264f0bb828ad6841902655e.png)
|
86
|
-
|
87
|
-
②ページ詳細画面:post_detail.html
|
88
|
-
|
89
|
-
※ 編集ボタンが消失
|
90
|
-
|
91
|
-
![イメージ説明](eed6c99d3a2fb3016ffb79fbb16ee80c.png)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
```ここに言語を入力
|
96
|
-
|
97
|
-
{% load staticfiles %}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<html>
|
102
|
-
|
103
|
-
<head>
|
104
|
-
|
105
|
-
<title>Blog</title>
|
106
|
-
|
107
|
-
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
108
|
-
|
109
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> -->
|
110
|
-
|
111
|
-
<link href="http://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
112
|
-
|
113
|
-
<!-- <link rel="stylesheet" href="{% static 'css/blog.css' %}"> -->
|
114
|
-
|
115
|
-
</head>
|
116
|
-
|
117
|
-
<body>
|
118
|
-
|
119
|
-
<div class="page-header">
|
120
|
-
|
121
|
-
<a href="/post/new/" class="top-menu"><span class="glyphicon glyphicon-plus"></span></a>
|
122
|
-
|
123
|
-
<h1><a href="/">Blog</a></h1>
|
124
|
-
|
125
|
-
</div>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<div class="content container">
|
130
|
-
|
131
|
-
<div class="row">
|
132
|
-
|
133
|
-
<div class="col-md-8">
|
134
|
-
|
135
|
-
{% block content %}
|
136
|
-
|
137
|
-
{% endblock %}
|
138
|
-
|
139
|
-
</div>
|
140
|
-
|
141
|
-
</div>
|
142
|
-
|
143
|
-
</div>
|
144
|
-
|
145
|
-
</body>
|
146
|
-
|
147
|
-
</html>
|
148
|
-
|
149
|
-
```
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
###試したこと
|
156
|
-
|
157
|
-
下記の部分をグーグルで検索しbootstrapのファイルをインストールして見て該当部分を抜き出して実装しようかと思ったんですが、どこが該当部分が特定できませんでした。
|
158
|
-
|
159
|
-
```ここに言語を入力
|
160
|
-
|
161
|
-
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
162
|
-
|
163
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> -->
|
164
|
-
|
165
|
-
<!-- <link rel="stylesheet" href="{% static 'css/blog.css' %}"> -->
|
166
|
-
|
167
|
-
```
|
5
|
+
Python(Django)の[チュートリアル](https://djangogirlsjapan.gitbooks.io/workshop_tutorialjp/content/css/)でブログの作成に挑戦しました。ここで使ったブログを土台に、自分のブログを作りたいと思っています。そこで、Bootstrapを使わずに作りたいと思い、htmlを編集すると一部の機能がなくなってしまいました。どのようにすれば、bootstrapを使ったようなブログが使わずに作れるでしょうか?
|
3
スリム化
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,42 +5,6 @@
|
|
5
5
|
Python(Django)の[チュートリアル](https://djangogirlsjapan.gitbooks.io/workshop_tutorialjp/content/css/)でブログの作成に挑戦しました。ここで使ったブログを土台に、自分のブログを作りたいと思っています。そこで、Bootstrapを使わずに作りたいと思い、htmlを編集すると一部の機能がなくなってしまいました。
|
6
6
|
|
7
7
|
|
8
|
-
|
9
|
-
###発生している問題・エラーメッセージ
|
10
|
-
|
11
|
-
ファイル構成
|
12
|
-
|
13
|
-
```
|
14
|
-
|
15
|
-
blog
|
16
|
-
|
17
|
-
-settings.py
|
18
|
-
|
19
|
-
-urls.py
|
20
|
-
|
21
|
-
-wsgi.py
|
22
|
-
|
23
|
-
-posts
|
24
|
-
|
25
|
-
・templates/posts
|
26
|
-
|
27
|
-
-base.html
|
28
|
-
|
29
|
-
-post_detail.html
|
30
|
-
|
31
|
-
-post_edit.html
|
32
|
-
|
33
|
-
-post_list.html
|
34
|
-
|
35
|
-
・forms.py
|
36
|
-
|
37
|
-
・models.py
|
38
|
-
|
39
|
-
・urls.py
|
40
|
-
|
41
|
-
・views.py
|
42
|
-
|
43
|
-
```
|
44
8
|
|
45
9
|
|
46
10
|
|
2
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -138,7 +138,7 @@
|
|
138
138
|
|
139
139
|
<head>
|
140
140
|
|
141
|
-
<title>
|
141
|
+
<title>Blog</title>
|
142
142
|
|
143
143
|
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
144
144
|
|
1
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,15 +66,87 @@
|
|
66
66
|
|
67
67
|
<head>
|
68
68
|
|
69
|
+
<title>Blog</title>
|
70
|
+
|
71
|
+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
72
|
+
|
73
|
+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
|
74
|
+
|
75
|
+
<link href="http://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
76
|
+
|
77
|
+
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
|
78
|
+
|
79
|
+
</head>
|
80
|
+
|
81
|
+
<body>
|
82
|
+
|
83
|
+
<div class="page-header">
|
84
|
+
|
85
|
+
<a href="/post/new/" class="top-menu"><span class="glyphicon glyphicon-plus"></span></a>
|
86
|
+
|
87
|
+
<h1><a href="/">Blog</a></h1>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<div class="content container">
|
94
|
+
|
95
|
+
<div class="row">
|
96
|
+
|
97
|
+
<div class="col-md-8">
|
98
|
+
|
99
|
+
{% block content %}
|
100
|
+
|
101
|
+
{% endblock %}
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
</body>
|
110
|
+
|
111
|
+
</html>
|
112
|
+
|
113
|
+
```
|
114
|
+
|
115
|
+
after
|
116
|
+
|
117
|
+
①ページ一覧画面:post_list.html
|
118
|
+
|
119
|
+
※ +ボタンが消失
|
120
|
+
|
121
|
+
![イメージ説明](0c82a3f35264f0bb828ad6841902655e.png)
|
122
|
+
|
123
|
+
②ページ詳細画面:post_detail.html
|
124
|
+
|
125
|
+
※ 編集ボタンが消失
|
126
|
+
|
127
|
+
![イメージ説明](eed6c99d3a2fb3016ffb79fbb16ee80c.png)
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
```ここに言語を入力
|
132
|
+
|
133
|
+
{% load staticfiles %}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<html>
|
138
|
+
|
139
|
+
<head>
|
140
|
+
|
69
141
|
<title>Arblet Blog</title>
|
70
142
|
|
71
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
143
|
+
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
72
|
-
|
144
|
+
|
73
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
|
145
|
+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> -->
|
74
146
|
|
75
147
|
<link href="http://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
76
148
|
|
77
|
-
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
|
149
|
+
<!-- <link rel="stylesheet" href="{% static 'css/blog.css' %}"> -->
|
78
150
|
|
79
151
|
</head>
|
80
152
|
|
@@ -112,88 +184,16 @@
|
|
112
184
|
|
113
185
|
```
|
114
186
|
|
115
|
-
|
187
|
+
|
116
|
-
|
117
|
-
|
188
|
+
|
118
|
-
|
189
|
+
|
190
|
+
|
119
|
-
|
191
|
+
###試したこと
|
120
|
-
|
192
|
+
|
121
|
-
|
193
|
+
下記の部分をグーグルで検索しbootstrapのファイルをインストールして見て該当部分を抜き出して実装しようかと思ったんですが、どこが該当部分が特定できませんでした。
|
122
|
-
|
123
|
-
②ページ詳細画面:post_detail.html
|
124
|
-
|
125
|
-
※ 編集ボタンが消失
|
126
|
-
|
127
|
-
![イメージ説明](eed6c99d3a2fb3016ffb79fbb16ee80c.png)
|
128
|
-
|
129
|
-
|
130
194
|
|
131
195
|
```ここに言語を入力
|
132
196
|
|
133
|
-
{% load staticfiles %}
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<html>
|
138
|
-
|
139
|
-
<head>
|
140
|
-
|
141
|
-
<title>Arblet Blog</title>
|
142
|
-
|
143
|
-
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
144
|
-
|
145
|
-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> -->
|
146
|
-
|
147
|
-
<link href="http://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
148
|
-
|
149
|
-
<!-- <link rel="stylesheet" href="{% static 'css/blog.css' %}"> -->
|
150
|
-
|
151
|
-
</head>
|
152
|
-
|
153
|
-
<body>
|
154
|
-
|
155
|
-
<div class="page-header">
|
156
|
-
|
157
|
-
<a href="/post/new/" class="top-menu"><span class="glyphicon glyphicon-plus"></span></a>
|
158
|
-
|
159
|
-
<h1><a href="/">Blog</a></h1>
|
160
|
-
|
161
|
-
</div>
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
<div class="content container">
|
166
|
-
|
167
|
-
<div class="row">
|
168
|
-
|
169
|
-
<div class="col-md-8">
|
170
|
-
|
171
|
-
{% block content %}
|
172
|
-
|
173
|
-
{% endblock %}
|
174
|
-
|
175
|
-
</div>
|
176
|
-
|
177
|
-
</div>
|
178
|
-
|
179
|
-
</div>
|
180
|
-
|
181
|
-
</body>
|
182
|
-
|
183
|
-
</html>
|
184
|
-
|
185
|
-
```
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
###試したこと
|
192
|
-
|
193
|
-
下記の部分をグーグルで検索しbootstrapのファイルをインストールして見て該当部分を抜き出して実装しようかと思ったんですが、どこが該当部分が特定できませんでした。
|
194
|
-
|
195
|
-
```ここに言語を入力
|
196
|
-
|
197
197
|
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
198
198
|
|
199
199
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> -->
|