Is there any way to restart the web server from within the bash console given in the browser for PythonAnywhere? I have searched google for a while
There is a file for each of your web apps in /var/www. The naming of the file should make it obvious which file applies to which web app.
Type
touch /var/www/
(where