我正在尝试使用 Django 模板,但当我写下以下内容时,我什至认为我已经使用了 pip install:
from django.templated_email import send_templated_mail
我收到此错误(我想使用此模板:https ://github.com/bradwhittington/django-templated-email ):
ImportError at /
No module named templated_email
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.4
Exception Type: ImportError
Exception Value: No module named templated_email
Exception Location: /Users/user/folder/MyProyect/proyect/templated_email/send_email.py in <module>, line 26
Python Executable: /usr/bin/python
Python Version: 2.7.1
Python Path: ['/Users/user/folder/MyProyect/proyect',
'/Library/Python/2.7/site-packages/pip-1.0-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages',
'/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
Server time: mar, 15 Ene 2013 12:04:27 +0100
如果有人知道如何解决这个问题,请告诉我如何(如果有一个很好的例子)
非常感谢