I have my directory as:
-- application
|- __init__.py
run.py
i have code in __init__.py
as:
from flask import Flask
app = Flask(__name__)
run.py as:
from application import app
if __name__ == '__main__':
app.run(debug=True)
error shown:
from application import app
ImportError: cannot import name 'app' from 'application'
The code suddenly works all of a sudden, i don't know how. so closing this question