python - DjangoSEO installation error - No module named hashcompat -
i want use djangoseo in project.
i followed installation instructions provided in documentation:
- i ran
pip install djangoseo
, confirmedpip freeze
- added
rollyourown.seo
installed_apps
setting - added
"django.core.context_processors.request"
template_context_processors
setting - when try run
python manage.py syncdb
or run application following error
d:\development\spellcheck\venv\lib\site-packages\django\contrib\sites\models.py:78: removedindjango19warning: model class django.contrib.sites.models.site doesn't declare explicit app_label , either isn't in application in installed_apps or else imported before application loaded. no longer supported in django 1.9. class site(models.model):
traceback (most recent call last): file "d:/development/spellcheck/manage.py", line 10, in execute_from_command_line(sys.argv) file "d:\development\spellcheck\venv\lib\site-packages\django\core\management__init__.py", line 338, in execute_from_command_line utility.execute() file "d:\development\spellcheck\venv\lib\site-packages\django\core\management__init__.py", line 312, in execute django.setup() file "d:\development\spellcheck\venv\lib\site-packages\django__init__.py", line 18, in setup apps.populate(settings.installed_apps) file "d:\development\spellcheck\venv\lib\site-packages\django\apps\registry.py", line 85, in populate app_config = appconfig.create(entry) file "d:\development\spellcheck\venv\lib\site-packages\django\apps\config.py", line 119, in create import_module(entry) file "c:\python27\lib\importlib__init__.py", line 37, in import_module import(name) file "d:\development\spellcheck\venv\lib\site-packages\rollyourown\seo__init__.py", line 4, in rollyourown.seo.base import metadata, tag, keywordtag, metatag, raw, literal, get_metadata, get_linked_metadata file "d:\development\spellcheck\venv\lib\site-packages\rollyourown\seo\base.py", line 17, in django.utils.hashcompat import md5_constructor importerror: no module named hashcompat
my seo.py looks this:
from rollyourown import seo class mymetadata(seo.metadata): title = seo.tag(head=true, max_length=68) description = seo.metatag(max_length=155) keywords = seo.keywordtag() heading = seo.tag(name="h1")
any ideas on have done wrong?
Comments
Post a Comment