回答編集履歴
1
urls.pyの設定についての説明を追記
answer
CHANGED
@@ -13,4 +13,21 @@
|
|
13
13
|
上記のコードがTinyMCEをロードする`script`タグを出力し、`{{ form.contents }}`で出力されたtextareaをリッチテキストエディタにしてくれます。
|
14
14
|
|
15
15
|
これはdjango-tinymceの以下公式ドキュメントにも書いてあります。英語ですが、Google翻訳などを使って一度目を通してみてください。
|
16
|
-
[Usage — django-tinymce 2.3 documentation](https://django-tinymce.readthedocs.io/en/latest/usage.html)
|
16
|
+
[Usage — django-tinymce 2.3 documentation](https://django-tinymce.readthedocs.io/en/latest/usage.html)
|
17
|
+
|
18
|
+
(2019/03/09 23:45追記)
|
19
|
+
|
20
|
+
これでもダメなら、`urls.py`の設定が足りないのかもしれません。`urlpatterns`の中に以下を追記してください。
|
21
|
+
|
22
|
+
```
|
23
|
+
(r'^tinymce/', include('tinymce.urls')),
|
24
|
+
```
|
25
|
+
|
26
|
+
Django 2以降なら以下を追記してください。
|
27
|
+
|
28
|
+
```
|
29
|
+
path('tinymce/', include('tinymce.urls')),
|
30
|
+
```
|
31
|
+
|
32
|
+
これは以下公式ドキュメントに書いてあります。
|
33
|
+
[Installation — django-tinymce 2.3 documentation](https://django-tinymce.readthedocs.io/en/latest/installation.html)
|