title: Unable to run the python script in pythonanywhere site
body: <p>File structure</p>
  <pre><code>__pycache__/    
   data/  
   pages/
      index.py
      __init__.py
      page_1.py
   run.py
  </code></pre>
  <p>Code in run.py</p>
  <pre><code>import pages.index as index
  
  if __name__ == '__main__':
      index.app.run_server(debug=True)
  </code></pre>
  <p>code in /var/www/test_pythonanywhere_com_wsgi.py</p>
  <pre><code># This file contains the WSGI configuration required to serve up your
  # web application at http://&lt;your-username&gt;.pythonanywhere.com/
  # It works by setting the variable 'application' to a WSGI handler of some
  # description.
  #
  # The below has been auto-generated for your Flask project
  
  import sys
  
  # add your project directory to the sys.path
  project_home = '/home/test/mysite/'
  if project_home not in sys.path:
      sys.path = [project_home] + sys.path
  
  # import flask app but need to call it &quot;application&quot; for WSGI to work
  from weber_dashboard import run
  application = run.server
  </code></pre>
  <p>Error log</p>
  <pre class="lang-none prettyprint-override"><code>2022-04-29 15:07:21,843: Error running WSGI application
  2022-04-29 15:07:21,846: ModuleNotFoundError: No module named 'pages'
  2022-04-29 15:07:21,847:   File &quot;/var/www/test_pythonanywhere_com_wsgi.py&quot;, line 16, in &lt;module&gt;
  2022-04-29 15:07:21,847:     from weber_dashboard import run
  2022-04-29 15:07:21,847: 
  2022-04-29 15:07:21,847:   File &quot;/home/lataigmbh/mysite/weber_dashboard/run.py&quot;, line 1, in &lt;module&gt;
  2022-04-29 15:07:21,847:     import pages.index as index
  2022-04-29 15:07:21,847: ***************************************************
  2022-04-29 15:07:21,848: If you're seeing an import error and don't know why,
  2022-04-29 15:07:21,848: we have a dedicated help page to help you debug: 
  2022-04-29 15:07:21,848: https://help.pythonanywhere.com/pages/DebuggingImportError/
  2022-04-29 15:07:21,848: ***************************************************
  </code></pre>
  <p>run.py script run perfectly fine in bash console</p>