miguelgrinberg / flasky

Companion code to my O'Reilly book "Flask Web Development", second edition.
MIT License
8.52k stars 4.2k forks source link

ImportError: cannot import name 'current_app' from partially initialized module 'flask' (most likely due to a circular import) #516

Closed Yuluer closed 3 years ago

Yuluer commented 3 years ago

I can't find the problem where make it a circular import

miguelgrinberg commented 3 years ago

This is an issue board for problems with the book or the project featured in the book. If you have a generic Flask question it is best to use Stack Overflow.

dvdhgh commented 1 year ago

I'm also getting this issue when trying to run microblog in Pycharm.

Are the steps involved to run the web application documented anywhere? I've performed a git clone, installed all dependencies (except greenlet, which won't install) and run microblog.py.

Much appreciated.

miguelgrinberg commented 1 year ago

@dvdhgh This is a issue tracker for the Flasky application. For my Microblog application, please use the Flask Mega-Tutorial as a guide. That project is not intended to be used stand-alone, you have to follow the tutorial to learn how to build it step by step.