Import section of code:
from flask import Flask, render_template,request,redirect,flash
from flask_wtf import Form
from wtforms import TextField, TextAreaField, validators
from wtforms.validators import DataRequired
from flask_mail import Message, Mail
Error logs below:
2016-06-14 13:35:18,238 :Error running WSGI application
Traceback (most recent call last):
File "/bin/user_wsgi_wrapper.py", line 154, in __call__
app_iterator = self.app(environ, start_response)
File "/bin/user_wsgi_wrapper.py", line 170, in import_error_application
raise e
File "/bin/user_wsgi_wrapper.py", line 154, in __call__
app_iterator = self.app(environ, start_response)
File "/bin/user_wsgi_wrapper.py", line 170, in import_error_application
raise e
File "/bin/user_wsgi_wrapper.py", line 154, in __call__
app_iterator = self.app(environ, start_response)
File "/bin/user_wsgi_wrapper.py", line 170, in import_error_application
raise e
File "/bin/user_wsgi_wrapper.py", line 179, in <module>
application = load_wsgi_application()
File "/bin/user_wsgi_wrapper.py", line 175, in load_wsgi_application
return __import__(os.environ['WSGI_MODULE'], globals(), locals(), ['application']).application
File "/var/www/fishingforyoungsters_pythonanywhere_com_wsgi.py", line 16, in <module>
from flask_app import app as application
File "/home/fishingforyoungsters/mysite/flask_app.py", line 3, in <module>
from flask_mail import Message, Mail
ImportError: No module named 'flask_mail'
I am not using a virtualenv, and running $ pip list shows Flask-Mail is installed.
What am I doing wrong?