Hello,
I have an app that I'm trying to integrate Flask-Mail. I get the following errors when I restart my app.
2012-10-12 18:40:41,237 :Traceback (most recent call last):
2012-10-12 18:40:41,237 :ImportError: No module named mail
I used a bash console and used easy_install to install Flask-Mail and it now resides in:
/ > home > MorePyPlease > .local > lib > python2.7 > site-packages
A recent callback in my application was here (unrelated to this error):
File "/usr/local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1344, in dispatch_request
which leads me to believe I am using Python2.7.. But I believe I started coding my appliation before you switched over. Just for the information :)
What am I doing wrong?
In my app I call it like this:
from flaskext.mail import Mail, Message
# create our little application :)
app = Flask(__name__)
app.config.from_object(__name__)
app.config.from_envvar('MINITWIT_SETTINGS', silent=True)
# setup Mail
mail = Mail(app)
Is there additional steps I need to take before it will recognize it as a flaskext? should I be importing it another way?