沒有被發現在使用下面的代碼:元素 'html_block' 在OrderedDict
MARKDOWN_KWARGS = {
'extensions': [
'footnotes',
'attr_list',
'headerid',
'extra',
'codehilite',
],
'safe_mode': 'escape',
我收到以下錯誤:
Django Version: 1.6.11
Exception Type: ValueError
Exception Value:
Element 'html_block' was not found in OrderedDict
Exception Location: /usr/local/lib/python2.7/site-packages/markdown/odict.py in index, line 149
Python Executable: /usr/local/bin/python
Python Version: 2.7.9
爲什麼?我能做些什麼來解決它?
被刪除 '的safe_mode' 解決: '逃離',
你用你的字典做什麼,最後發佈你處理字典的行! – HassenPy