Question

On a brand new project that's sole purpose is to test if I'm doing everything correct, this https://github.com/benjaoming/django-wiki module works fine, bet as I'm trying to attach it to my main app, it shows this error when I'm runing python manage.py syncdb: django.core.exceptions.ImproperlyConfigured: ImportError wiki.plugins.attachments: No module named plugins.attachments - can you please tell me why and how can I fix that?

Also - why did I get a downvote for this question?

Was it helpful?

Solution

You have to list the plugins in your INSTALLED_APPS as well, see:

https://github.com/benjaoming/django-wiki#configure-settingsinstalled_apps

So your INSTALLED_APPS should contain, in this order:

'django.contrib.humanize',
'south',
'django_notify',
'mptt',
'sekizai',
'sorl.thumbnail',
'wiki',
'wiki.plugins.attachments',
'wiki.plugins.notifications',
'wiki.plugins.images',
'wiki.plugins.macros',

EDIT:

I'd suggest re-installing the wiki package.

# pip uninstall wiki
# pip install wiki
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top