Hi, I copied all the code form this tutorial, to make sure, but I always get this error, it supposed to be something with settings or instalation.
Traceback (most recent call last):
File "/Users/pavelgol/Coding/Flask web/main.py", line 3, in
app = create_app()
File "/Users/pavelgol/Coding/Flask web/website/init.py", line 7, in create_app
from .views import views
File "/Users/pavelgol/Coding/Flask web/website/views.py", line 1, in
from flask import blueprint
ImportError: cannot import name 'blueprint' from 'flask' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/init.py)
Hi, I copied all the code form this tutorial, to make sure, but I always get this error, it supposed to be something with settings or instalation.
Traceback (most recent call last): File "/Users/pavelgol/Coding/Flask web/main.py", line 3, in
app = create_app()
File "/Users/pavelgol/Coding/Flask web/website/init.py", line 7, in create_app
from .views import views
File "/Users/pavelgol/Coding/Flask web/website/views.py", line 1, in
from flask import blueprint
ImportError: cannot import name 'blueprint' from 'flask' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/init.py)
Thank you.