I have a Website hosted on pythonanywhere using main.py. I have another xxx.py that will execute an action. both the main.py and xxx.py are inside the same project folder. The main.py is definitely using the virtual environment since it works while the xxx.py when run says the modules are not installed. How do I get the xxx.py to use the same virtual environment.
- I created a new virtual environment and updated the web app with the new virtual environment.
- I tried to update the WSGI configuration file since it has only the path for main.py in it when I try to add "from xxx import app as xxx_app" the web app stops working completely.