title: PyCharm + Flask: Unresolved reference - How do I properly import Python namespaces?
body: <p>I have added <code>Flask</code> and <code>Flask-Script</code> to <code>PyCharm</code> virtual environment. The app runs but <code>PyCharm</code> gives me various errors: </p>
  
  <blockquote>
  <pre><code>Unresolved reference "Manager" (from  flask.ext.script import Manager)
  Cannot find reference "script" in "__init__.py" (from  flask.ext.script import Manager)
  No module named "script" (command = flask.ext.script.Command(app)
  </code></pre>
  </blockquote>
  
  <p>As a result code completion doesn't work.</p>
  
  <p>So if I directly import the modules like 
  import flask_script
  code completion works but I am not sure if that's an intended use!</p>
  
  <p>I can fix that if I import <code>flask_script</code> directly instead of <code>flask.ext</code>. Is that a valid workaround?</p>
  
  <p>Is there any other proper way to solve that? I read a few answers but none of them seems to address this issue.</p>