The World’s Largest Online Community for Developers

'; python - How can I call a variable from inside a function in another file in Python3 to the currrent file? - LavOzs.Com

I have a Flask app with 2 files- and After running the operations in, it runs needs a variable from inside a function proceed() in This variable is obtained by getting data from a form (with requests). This can be done only in This variable is compulsory for to work.

I tried- import app, and did a = but used to get an AttributeError.

If I do from app import proceed, I get an error that Flask has no email.