Установил django-markitup в виртуальное окружение.
Добавил 'markitup' в INSTALLED_APPS:
INSTALLED_APPS = [
...
'markitup',
]
Добавил в settings.py:
MARKITUP_FILTER = ('markdown.markdown', {'safe_mode': True})
MARKITUP_SET = 'markitup/sets/markdown'
Добавил в urls.py:
urlpatterns = [
...
path(r'^markitup/', include('markitup.urls')),
]
Выдает ошибку:
Reverse for 'markitup_preview' not found. 'markitup_preview' is not a valid view function or pattern name.
Что еще нужно сделать?
В документации есть строка "Make the contents of the markitup/static/markitup directory available at STATIC_URL/markitup; the simplest way is via django.contrib.staticfiles". Не понимаю как это сделать.
Нашел еще в документации про markitup_preview:
"Note
Using the MarkItUpWidget or markitup_editor template tag will automatically set the previewParserPath in your MarkItUp! set to reverse('markitup_preview'), if markitup.urls is included in your URLconf."