title: "ImportError: cannot import name views" on Flask server but in PyCharm works
body: <p>At the beginning, I'm newbie at Flask.</p>
  
  <p>I received a working project made in Python using Flask framework. It worked in PyCharm. When I pasted it into server files and run flask server (I followed documentation on Flask site), the error has shown: <br></p>
  
  <pre><code>File "/home/web/app/__init__.py", line 22, in &lt;module&gt;
  from app import views, models
  ImportError: cannot import name views
  </code></pre>
  
  <p>So that is the <strong>init</strong>.py file:</p>
  
  <pre><code>1 import os
  2 from flask import Flask
  3 from flask_sqlalchemy import SQLAlchemy
  4 from flask_login import LoginManager
  5 from flask_openid import OpenID
  6 from config import basedir
  7
  8 app = Flask(__name__)
  9 app.config.from_pyfile('config.py')
  10
  11 db = SQLAlchemy(app)
  12
  13 # Imports below help me fixing the database
  14 # from app import models
  15 # import database_migrate
  16
  17 lm = LoginManager()
  18 lm.init_app(app)
  19 lm.login_view = 'login'
  20 oid = OpenID(app, os.path.join(basedir, 'tmp'))
  21
  22 from app import views, models
  23
  24 app.run(debug=True)
  </code></pre>
  
  <p>When typed <i>print(app)</i> it shows <i>None</i>. All the modules are installed. Tried to run simple webapp printing "Hello world", and it worked. Flask has been reinstalled three times. Views has <i>from app import app</i>
  I couldn't find any solution on stack or in any other place. 
  <br> Thanks in advance</p>