2👍
This is a spot where you need to pay close attention to the version of the documentation you’re reading.
If you’re on Django 1.5 or lower, use:
'django.middleware.doc.XViewMiddleware',
If you’re on Django 1.6 or greater, use:
'django.contrib.admindocs.middleware.XViewMiddleware',
0👍
I ran into the same problem a few days ago…
- add
'django.contrib.admindocs,'
to yourINSTALLED_APPS
- add
'django.contrib.admindocs.middleware.XViewMiddleware',
to yourMIDDLEWARE_CLASSES
👤OBu
- [Answered ]-Django won't import values to database – sqlite3
- [Answered ]-Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- [Answered ]-Django doesn't render the requested view
0👍
I’m on Django 1.6. This is the line that worked for me in MIDDLEWARE_CLASSES:
django.middleware.doc.XViewMiddleware
The other suggestion for Django 1.6 didn’t work for me.
- [Answered ]-How can I get rid of legacy tasks still in the Celery / RabbitMQ queue?
- [Answered ]-Django – Migrate command says that table exists after second makemigrations was executed
- [Answered ]-Parsing forloop.counter in form's label in Django
- [Answered ]-Django slug, `\w` doesn't detect korean + chinese
- [Answered ]-Adding a django model instance without a form -> button only
Source:stackexchange.com