Flask-Web-App-Tutorial
Flask-Web-App-Tutorial copied to clipboard
Can't run the code
I keep getting this error: ( can't find 'main')
Anyone know why ?
this is in the main.py file
it says that it cant find that module
In main.py, at the if statement at the bottom, does it say if __name__ == '__main__':
? Possible duplicate: https://github.com/techwithtim/Flask-Web-App-Tutorial/issues/15
Sorry if this isn't enough help. I don't have information about how your code is written. Unless you modified the code, it should run fine.
Thank you yes it does say that but still won't run thank you tho, it stickler says it can't define main
Could you send your code? It's pretty hard to answer if you don't have the code. Unless if you modified the code, it might be with what you're working with (IDE, python version, etc)
Before PRs You Must Watch Video
ile "/Users/mirceaalexandru/Desktop/projectpython/website/init.py", line 22, in create_app from .models import User, Note ImportError: cannot import name 'User' from 'website.models' (/Users/mirceaalexandru/Desktop/projectpython/website/models.py)