title: "How to fix' ImportError: cannot import name 'SQLAlchemy'
body: <pre><code>import os
  from flask import Flask
  from flask_wtf import FlaskForm
  import sqlalchemy
  from flask_sqlalchemy import SQLAlchemy
  
  bsdir = os.path.abspath(os.path.dirname(__file__))
  # print(bsdir)
  
  app = Flask(__name__, template_folder = 'template')
  
  
  app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///'+os.path.join(bsdir,'data.sqlite')
  app.config['SQLALCHEMY_TRACK_MODIFICATION'] = False
  
  db = SQLAlchemy(app)
  class Puppy(db.Model):
      pass
  </code></pre>
  
  <p>Traceback (most recent call last):</p>
  
  <blockquote>
    <p>File "D:\PYTHON\GIT_EXC\FLASK_\flask_sqlalchemyex.py", line 5, in
    
        from flask_sqlalchemy import SQLAlchemy   File "D:\PYTHON\GIT_EXC\FLASK_\flask_sqlalchemy.py", line 4, in 
        from flask_sqlalchemy import SQLAlchemy ImportError: cannot import name 'SQLAlch</p>
  </blockquote>