shenyushun / cookiecutter-simple-django-cn

cookiecutter-simple-django-cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jinja2.exceptions.UndefinedError

chansonZ opened this issue · comments

python2.7,django1.11,出现这样的问题:
File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "", line 62, in top-level template code
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'copy_hooks'

python 2.7
pip list 如下,遇到相同的问题。

appdirs (1.4.3)
arrow (0.10.0)
binaryornot (0.4.3)
chardet (3.0.2)
click (6.7)
cookiecutter (1.5.1)
Django (1.9)
future (0.16.0)
Jinja2 (2.9.6)
jinja2-time (0.2.0)
MarkupSafe (1.0)
packaging (16.8)
pip (9.0.1)
poyo (0.4.1)
pyparsing (2.2.0)
python-dateutil (2.6.0)
pytz (2017.2)
setuptools (35.0.2)
six (1.10.0)
wheel (0.29.0)
whichcraft (0.4.1)
commented

多谢反馈,是cookiecutter更新导致的问题。不过由于工作目前比较忙,各位可以先使用cookiecutter-django