Running flask from pycharm vs pi

I have a flask project in Pycharm setup to use a rasperry pi on the LAN as a remote interpreter.  When I run the site from within Pycharm, it all works fine.  When I run the site from the terminal on the pi, I have an error that some imports cannot be found.  The struture of the files are as follows:

site
├───services
├───static
│ ├───css
│ ├───img
│ └───js
├───templates
│ ├───home
│ └───shared
├───views
└───app.py

In app.py the following line causes the error:

from site.views import home_views

 

I have checked the sys.path on the pi, and it does contain the parent directory of 'site'.

I do not understand why this is happening.  Any suggestions appreciated.

0

Please sign in to leave a comment.