from website import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True)
Even though I have installed Module website in vs (pip install website) I get an ImportError that I cannot import ‘create app’ from website
from flask import Flask
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'hfahuhsfuiahdfuhai juueioudiu'
return app
At first I had an ModuleError because I hadn’t a module named ‘website’. Now I have but there’s the ImportError I try asking Chatgpt but it didn’t worked out to me
New contributor
Leonidas Tass is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.