title: ImportError: cannot import name 'app'
body: <p>I have been working on this for 5+ hours and it seems like it should be rather simple. I followed the <a href="http://flask.pocoo.org/docs/deploying/mod_wsgi/#creating-a-wsgi-file" rel="nofollow">instructions</a> to set up a flask application on apache via mod_wsgi and after finishing them I am getting an error that</p>
  
  <pre><code>ImportError: cannot import name 'app'
  </code></pre>
  
  <p>from the line:</p>
  
  <pre><code>from web_tool import app as application
  </code></pre>
  
  <p>of my wsgi file that is called web_tool.wsgi and looks like:</p>
  
  <pre><code>import sys  
  sys.path.insert(0, "/path/web_tool/src/")
  print(sys.version)
  print(sys.path)
  
  from web_tool import app as application
  </code></pre>
  
  <p>My python version and system path are correct at least so I believe. </p>
  
  <p>And then my virtualhost file, which is stored in apache2/sites-available/default looks like:</p>
  
  <pre><code>WSGIPythonHome /usr/local/opt/python-3.4.1
  
  &lt;VirtualHost *:4000&gt;
  
      ServerName my.servername.com
      WSGIDaemonProcess web_tool user=my_username group=my_group threads=5
      WSGIScriptAlias / /path/web_tool/src/web_tool/web_tool.wsgi
      WSGIApplicationGroup %{GLOBAL}
  
      &lt;Directory /path/web_tool/src/web_tool/&gt;
          WSGIProcessGroup cnt_tool
          Order deny,allow
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Do you see any errors, should my wsgi file be called the same as my python file? I'm running python 3.4 and mod_wsgi 3.4.</p>