(couchdb version 0.8, django version 1.5 on Windows 7)
In order to succesfully run the example, i did the following:
- if you get the error,
cannot import name ResourceNotFound,
edit couch_docs/view.py as follows:
from couchdb
- if you get the error,
AssertionError at / The XView middleware requires authentication middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.auth.middleware.AuthenticationMiddleware'.
do what it says..
- if you get the error,
The Django authentication middleware requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'.
do what it says.. settings.py becomes as follows:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
- if you get the error,
Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'"
update settings.py as follows:
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
After the above fixes, the example worked for me..
Hiç yorum yok:
Yorum Gönder