Forums

How can I run a flask app with this structure?

I created my app following this tutorial: http://flask.pocoo.org/docs/0.12/patterns/packages/ As such almost all my files import stuff from other files using
from geotagger(name of my project).something.somethingelse
This causes a lot of import errors since it always says 'cant find geotagger'. I guess I could fix this by changing all my files but maybe there's something I'm missing here that could save me some boring work

We have a help page for that that describes how Python finds modules - http://help.pythonanywhere.com/pages/DebuggingImportError/. Have a look at that to understand what's going on.

I feel so dumb. On my project path I went too in and it couldn't obviously find the module since it was one folder above. That link made me realize it, thanks

Cool. Glad that was helpful.