jimdevops19 / FlaskSeries

This is the Code from my Flask Series - JimShapedCoding. Each Folder is a checkpoint where we stopped at that particular episode number
368 stars 280 forks source link

In Module 6: Project Restructure Importing routes.py in the __init__.py will Lead to Circular Imports #3

Closed SHESHANKSK closed 2 years ago

SHESHANKSK commented 2 years ago

The Error Message is Given Below

ImportError: cannot import name 'app' from partially initialized module 'market' (most likely due to a circular import) (D:\flaskfcc\market\__init__.py)
SHESHANKSK commented 2 years ago

This issue can be solved by making the following changes

if name == 'main': app.run(debug=True)