Skip to content

ImportError: cannot import name 'blueprint' from 'flask' #76

@Golpavel

Description

@Golpavel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions