[Answered ]-Django docutils not working

2πŸ‘

I guess django tries to do

import docutils

And this fails. Django catches the exception and displayes this message to you.

Please try to get the real exception. You could insert the above line in one of your views:

def myview(request, ...):
    import docutils

I hope django shows you the ImportError. Post it here, if still can’t fix it.

πŸ‘€guettli

0πŸ‘

Did you restart the Django server? Django has to restart to recognize the newly installed admindocs.

πŸ‘€kd4ttc

0πŸ‘

any chance you missed importing the admin in the urls.py?

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
πŸ‘€harmstyler

0πŸ‘

You might have installed the docutils module in the virtual env/path.

Uninstall it from the virtual path and re-install it in the global python installation folder. That should solve the problem.

Note: Do not install django-docutils, but just simply docutils

Leave a comment