0

I use django-wiki app : https://django-wiki.readthedocs.io/en/main/

I try to replace the base editor. The default param for editor is :

wiki.conf.settings.EDITOR = 'wiki.editors.markitup.MarkItUp'

I installed Martor (Markdown Editor plugin for Django) : https://github.com/agusmakmun/django-markdown-editor

I don't know how properly load it. I tried

import martor
wiki.conf.settings.EDITOR = 'martor'

and catch this error :

ImportError: Could not import 'martor'. The path must be fully qualified.

I tried also many things and catch differents errors.

How properly change the django-wiki editors config ? Thanks for reading.

ps: I use the last version of all packages (in a virtualenv)

Linux Mint 21
Python 3.10.4
django 4.0.7
Markdown==3.3.7
martor==1.6.14
wiki==0.9

EDIT regarding the documentation of django-wiki :

The following settings are available for configuration through your project. All settings are customized by prefixing WIKI_, so for instance URL_CASE_SENSITIVE should be configured as WIKI_URL_CASE_SENSITIVE. For plugins the prefix is WIKI_PLUGINNAME_, e.g. WIKI_IMAGES for the images plugin.

the param must be :

WIKI_EDITOR = 'SOMETHING'

But the error steal the same with this way of import.

Ahima
  • 45
  • 7

0 Answers0