Python Mvc Architecture Temperature Conversion: Why Am I Getting "nameerror: Global Name 'view' Is Not Defined"
This isn't a difficult question, but I can't wrap my head around it when dealing with MVC architecture (passing arguments between the VIEW, MODEL, and CONTROLLER). Error in questio
Solution 1:
I think NamerError
happens, because of wrong folder structure.
You should have for example
app/
|__init__.py
|counter.py
|myFrame.py
and then put all glue.py code to __init__.py
, but change imports of counter.py
and myFrame.py
. Move imports to the end of __init__.py
:
from app import myFrame
from app import counter
Post a Comment for "Python Mvc Architecture Temperature Conversion: Why Am I Getting "nameerror: Global Name 'view' Is Not Defined""