title: Pycharm SqlAlchemy autocomplete not working
body: <p>I'm using SQLAlchemy and Pycharm, but PyCharm can't see methods of SQLAlchemy for autocomplete function.</p>
  
  <p>Code:</p>
  
  <pre><code>from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  app = Flask(__name__)
  app.config['SECRET_KEY'] = 'secret!'
  app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.sqlite3'
  db = SQLAlchemy(app)
  
  
  class User(db.Model):
      __tablename__ = 'users'
      id = db.Column(db.Integer, primary_key=True)
      username = db.Column(db.String(16), index=True, unique=True)
  
  if __name__ == '__main__':
      db.create_all()
      app.run(debug=True)
  </code></pre>
  
  <p>For example, if I want call SQLAlchemy method of User class i must type full method name manually User.query.filter_by(username='peter').first()
  <a href="http://i.stack.imgur.com/RP5QT.jpg" rel="noreferrer">Autocomplete example</a></p>
  
  <p><strong>How to make autocomplete work for SQLAlchemy?</strong></p>
  
  <p>1) Yes, project was reloaded several times <br>
  2) Yes, right interpreter in File | settings | Project <br>
  3) Yes, PyCharm is not in Power Save Mode <br>
  4) Yes, I have Professional edition. <br></p>