Hello,
I am trying to set environment variables. I was following instructions for the following link:
https://help.pythonanywhere.com/pages/environment-variables-for-web-apps/
It doesn't seem to work on the line that says:
from dotenv import load_dotenv
It somehow works in bash. I did this to make sure it was imported properly. But it makes my site crash. Help would be very appreciated.
This is what is in my .error.log
2021-09-02 18:21:46,130: Error running WSGI application
2021-09-02 18:21:46,130: ModuleNotFoundError: No module named 'dotenv'
2021-09-02 18:21:46,130: File "/var/www/www_ics3u_ca_wsgi.py", line 10, in <module>
2021-09-02 18:21:46,130: from dotenv import load_dotenv
2021-09-02 18:21:46,130: ***************************************************
2021-09-02 18:21:46,131: If you're seeing an import error and don't know why,
2021-09-02 18:21:46,131: we have a dedicated help page to help you debug:
2021-09-02 18:21:46,131: https://help.pythonanywhere.com/pages/DebuggingImportError/
2021-09-02 18:21:46,131: ***************************************************