Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript &引用;运行WSGI应用程序时出错“;在Pythonywhere上托管基于Tornado的Python应用程序时_Javascript_Python 3.x_Tornado_Web Hosting_Pythonanywhere - Fatal编程技术网

Javascript &引用;运行WSGI应用程序时出错“;在Pythonywhere上托管基于Tornado的Python应用程序时

Javascript &引用;运行WSGI应用程序时出错“;在Pythonywhere上托管基于Tornado的Python应用程序时,javascript,python-3.x,tornado,web-hosting,pythonanywhere,Javascript,Python 3.x,Tornado,Web Hosting,Pythonanywhere,我正在尝试从Python和库托管。要在服务器上可视化图形,Tornado似乎不是首选,因为它具有异步能力,但在不使用异步功能的情况下,它应该仍然可以工作。我是一个网络托管的初学者,我尝试了以下方法,但没有成功 run.py virus_on_network.server import server app_server = server if __name__=='__main__': app_server.launch() wsgi.py import sys path = '/

我正在尝试从Python和库托管。要在服务器上可视化图形,Tornado似乎不是首选,因为它具有异步能力,但在不使用异步功能的情况下,它应该仍然可以工作。我是一个网络托管的初学者,我尝试了以下方法,但没有成功

run.py

virus_on_network.server import server

app_server = server

if __name__=='__main__':
    app_server.launch()
wsgi.py

import sys
path = '/home/ABC123/mysite/'
if path not in sys.path:
    sys.path.append(path)

import tornado.web
import tornado.wsgi
from run import app_server as app  # noqa

application = tornado.wsgi.WSGIApplication([
    (r"/", app),
])
我得到了一些东西,但是JavaScript部分似乎没有被执行。我确实将D3.js文件添加到了根目录中

应该是这样的

server.log

2020-04-20 15:54:06 Mon Apr 20 15:54:06 2020 - received message 0 from emperor
2020-04-20 15:54:06 SIGINT/SIGQUIT received...killing workers...
2020-04-20 15:54:07 worker 1 buried after 1 seconds
2020-04-20 15:54:07 goodbye to uWSGI.
2020-04-20 15:54:07 chdir(): No such file or directory [core/uwsgi.c line 1610]
2020-04-20 15:54:07 VACUUM: unix socket /var/sockets/ABC123.pythonanywhere.com/socket removed.
2020-04-20 15:54:10 *** Starting uWSGI 2.0.17.1 (64bit) on [Mon Apr 20 15:54:08 2020] ***
2020-04-20 15:54:10 compiled with version: 5.4.0 20160609 on 09 January 2020 17:57:39
2020-04-20 15:54:10 os: Linux-4.4.0-1100-aws #111 SMP Thu Jan 9 16:34:29 UTC 2020
2020-04-20 15:54:10 nodename: blue-liveweb5
2020-04-20 15:54:10 machine: x86_64
2020-04-20 15:54:10 clock source: unix
2020-04-20 15:54:10 pcre jit disabled
2020-04-20 15:54:10 detected number of CPU cores: 2
2020-04-20 15:54:10 current working directory: (unreachable)/etc/uwsgi/vassals
2020-04-20 15:54:10 detected binary path: /usr/local/bin/uwsgi
2020-04-20 15:54:10 *** dumping internal routing table ***
2020-04-20 15:54:10 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2020-04-20 15:54:10 *** end of the internal routing table ***
2020-04-20 15:54:10 chdir() to /home/ABC123/
2020-04-20 15:54:10 limiting number of processes to 60...
2020-04-20 15:54:10 your processes number limit is 60
2020-04-20 15:54:10 your memory page size is 4096 bytes
2020-04-20 15:54:10 detected max file descriptor number: 123456
2020-04-20 15:54:10 building mime-types dictionary from file /etc/mime.types...
2020-04-20 15:54:10 552 entry found
2020-04-20 15:54:10 lock engine: pthread robust mutexes
2020-04-20 15:54:10 thunder lock: disabled (you can enable it with --thunder-lock)
2020-04-20 15:54:10 uwsgi socket 0 bound to UNIX address /var/sockets/ABC123.pythonanywhere.com/socket fd 3
2020-04-20 15:54:10 Python version: 3.7.5 (default, Nov 14 2019, 22:26:37)  [GCC 5.4.0 20160609]
2020-04-20 15:54:10 *** Python threads support is disabled. You can enable it with --enable-threads ***
2020-04-20 15:54:10 Python main interpreter initialized at 0x10bd320
2020-04-20 15:54:10 your server socket listen backlog is limited to 100 connections
2020-04-20 15:54:10 your mercy for graceful operations on workers is 60 seconds
2020-04-20 15:54:10 setting request body buffering size to 65536 bytes
2020-04-20 15:54:10 mapped 334256 bytes (326 KB) for 1 cores
2020-04-20 15:54:10 *** Operational MODE: single process ***
2020-04-20 15:54:10 initialized 38 metrics
2020-04-20 15:54:10 WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x10bd320 pid: 1 (default app)
2020-04-20 15:54:10 *** uWSGI is running in multiple interpreter mode ***
2020-04-20 15:54:10 gracefully (RE)spawned uWSGI master process (pid: 1)
2020-04-20 15:54:10 spawned uWSGI worker 1 (pid: 4, cores: 1)
2020-04-20 15:54:10 metrics collector thread started
2020-04-20 15:54:10 spawned 2 offload threads for uWSGI worker 1
2020-04-20 15:54:12 announcing my loyalty to the Emperor...
2020-04-21 16:23:32 Tue Apr 21 16:23:32 2020 - received message 0 from emperor
2020-04-21 16:23:32 SIGINT/SIGQUIT received...killing workers...
2020-04-21 16:23:33 worker 1 buried after 1 seconds
2020-04-21 16:23:33 goodbye to uWSGI.
2020-04-21 16:23:33 chdir(): No such file or directory [core/uwsgi.c line 1610]
2020-04-21 16:23:33 VACUUM: unix socket /var/sockets/ABC132.pythonanywhere.com/socket removed.
2020-04-21 16:23:45 *** Starting uWSGI 2.0.17.1 (64bit) on [Tue Apr 21 16:23:34 2020] ***
2020-04-21 16:23:45 compiled with version: 5.4.0 20160609 on 09 January 2020 17:57:39
2020-04-21 16:23:45 os: Linux-4.4.0-1100-aws #111 SMP Thu Jan 9 16:34:29 UTC 2020
2020-04-21 16:23:45 nodename: blue-liveweb5
2020-04-21 16:23:45 machine: x86_64
2020-04-21 16:23:45 clock source: unix
2020-04-21 16:23:45 pcre jit disabled
2020-04-21 16:23:45 detected number of CPU cores: 2
2020-04-21 16:23:45 current working directory: (unreachable)/etc/uwsgi/vassals
2020-04-21 16:23:45 detected binary path: /usr/local/bin/uwsgi
2020-04-21 16:23:45 *** dumping internal routing table ***
2020-04-21 16:23:45 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2020-04-21 16:23:45 [rule: 1] subject: path_info regexp: /.well-known/acme-challenge/ action: continue:
2020-04-21 16:23:45 [rule: 2] subject: path_info regexp: ^/ action: basicauth:Default Realm,admin123:agUgu8guyjhg
2020-04-21 16:23:45 *** end of the internal routing table ***
2020-04-21 16:23:45 chdir() to /home/ABC132/
2020-04-21 16:23:45 limiting number of processes to 60...
2020-04-21 16:23:45 your processes number limit is 60
2020-04-21 16:23:45 your memory page size is 4096 bytes
2020-04-21 16:23:45 detected max file descriptor number: 123456
2020-04-21 16:23:45 building mime-types dictionary from file /etc/mime.types...
2020-04-21 16:23:45 552 entry found
2020-04-21 16:23:45 lock engine: pthread robust mutexes
2020-04-21 16:23:45 thunder lock: disabled (you can enable it with --thunder-lock)
2020-04-21 16:23:45 uwsgi socket 0 bound to UNIX address /var/sockets/ABC132.pythonanywhere.com/socket fd 3
2020-04-21 16:23:45 Python version: 3.7.5 (default, Nov 14 2019, 22:26:37)  [GCC 5.4.0 20160609]
2020-04-21 16:23:45 *** Python threads support is disabled. You can enable it with --enable-threads ***
2020-04-21 16:23:45 Python main interpreter initialized at 0x1db2330
2020-04-21 16:23:45 your server socket listen backlog is limited to 100 connections
2020-04-21 16:23:45 your mercy for graceful operations on workers is 60 seconds
2020-04-21 16:23:45 setting request body buffering size to 65536 bytes
2020-04-21 16:23:45 mapped 334256 bytes (326 KB) for 1 cores
2020-04-21 16:23:45 *** Operational MODE: single process ***
2020-04-21 16:23:45 initialized 38 metrics
2020-04-21 16:23:45 WSGI app 0 (mountpoint='') ready in 10 seconds on interpreter 0x1db2330 pid: 1 (default app)
2020-04-21 16:23:45 *** uWSGI is running in multiple interpreter mode ***
2020-04-21 16:23:45 gracefully (RE)spawned uWSGI master process (pid: 1)
2020-04-21 16:23:45 spawned uWSGI worker 1 (pid: 4, cores: 1)
2020-04-21 16:23:45 metrics collector thread started
2020-04-21 16:23:45 spawned 2 offload threads for uWSGI worker 1
2020-04-21 16:23:45 announcing my loyalty to the Emperor...
错误日志

2020-04-20 15:54:12,530: 200 GET / (10.0.0.121) 9.19ms
2020-04-20 15:54:19,930: 200 GET / (10.0.0.121) 4.68ms
2020-04-20 15:54:20,138: 404 GET /static/css/bootstrap.min.css (10.0.0.121) 0.38ms
2020-04-20 15:54:20,147: 404 GET /static/js/jquery.min.js (10.0.0.121) 0.27ms
2020-04-20 15:54:20,148: 404 GET /static/css/bootstrap-switch.min.css (10.0.0.121) 0.26ms
2020-04-20 15:54:20,148: 404 GET /static/css/bootstrap-theme.min.css (10.0.0.121) 0.21ms
2020-04-20 15:54:20,159: 404 GET /static/css/bootstrap-slider.min.css (10.0.0.121) 0.20ms
2020-04-20 15:54:20,160: 404 GET /static/css/visualization.css (10.0.0.121) 0.28ms
2020-04-20 15:54:20,249: 404 GET /static/js/bootstrap-switch.min.js (10.0.0.121) 0.30ms
2020-04-20 15:54:20,250: 404 GET /static/js/bootstrap.min.js (10.0.0.121) 0.40ms
2020-04-20 15:54:20,250: 404 GET /static/js/bootstrap-slider.min.js (10.0.0.121) 0.25ms
2020-04-20 15:54:20,251: 404 GET /static/js/d3.min.js (10.0.0.121) 0.25ms
2020-04-20 15:54:20,267: 404 GET /static/js/ChartModule.js (10.0.0.121) 0.24ms
2020-04-20 15:54:20,287: 404 GET /static/js/NetworkModule_d3.js (10.0.0.121) 0.23ms
2020-04-20 15:54:20,347: 404 GET /static/js/Chart.min.js (10.0.0.121) 0.30ms
2020-04-20 15:54:20,358: 404 GET /static/js/TextModule.js (10.0.0.121) 0.29ms
2020-04-20 15:54:20,359: 404 GET /static/js/runcontrol.js (10.0.0.121) 0.23ms
2020-04-20 15:54:20,390: 404 GET /static/js/bootstrap-switch.min.js (10.0.0.121) 0.23ms
2020-04-20 15:54:20,513: 404 GET /static/js/bootstrap-slider.min.js (10.0.0.121) 0.33ms
2020-04-20 15:54:20,628: 404 GET /static/js/d3.min.js (10.0.0.121) 0.32ms
2020-04-20 15:54:20,796: 404 GET /static/js/ChartModule.js (10.0.0.121) 0.31ms
2020-04-20 15:54:20,920: 404 GET /static/js/NetworkModule_d3.js (10.0.0.121) 0.32ms
2020-04-20 15:54:21,100: 404 GET /static/js/Chart.min.js (10.0.0.121) 0.29ms
2020-04-20 15:54:21,208: 404 GET /static/js/TextModule.js (10.0.0.121) 0.30ms
2020-04-20 15:54:21,331: 404 GET /static/js/runcontrol.js (10.0.0.121)  0.36ms
2020-04-21 16:22:54,191: 200 GET / (10.0.0.121) 7.83ms
2020-04-21 16:23:00,511: 200 GET / (10.0.0.121) 3.87ms
2020-04-21 16:23:00,686: 304 GET /static/css/bootstrap.min.css (10.0.0.121) 13.36ms
2020-04-21 16:23:00,780: 304 GET /static/css/bootstrap-switch.min.css (10.0.0.121) 2.89ms
2020-04-21 16:23:00,791: 304 GET /static/css/bootstrap-theme.min.css (10.0.0.121) 2.23ms
2020-04-21 16:23:00,807: 304 GET /static/css/bootstrap-slider.min.css (10.0.0.121) 2.23ms
2020-04-21 16:23:00,881: 304 GET /static/css/visualization.css (10.0.0.121) 2.63ms
2020-04-21 16:23:00,902: 304 GET /static/js/bootstrap.min.js (10.0.0.121) 4.15ms
2020-04-21 16:23:00,906: 304 GET /static/js/jquery.min.js (10.0.0.121) 3.98ms
2020-04-21 16:23:00,983: 304 GET /static/js/bootstrap-switch.min.js (10.0.0.121) 4.12ms
2020-04-21 16:23:01,010: 304 GET /static/js/TextModule.js (10.0.0.121) 3.98ms
2020-04-21 16:23:01,015: 304 GET /static/js/bootstrap-slider.min.js (10.0.0.121) 2.93ms
2020-04-21 16:23:01,340: 304 GET /static/js/ChartModule.js (10.0.0.121) 2.33ms
2020-04-21 16:23:01,351: 304 GET /static/js/Chart.min.js (10.0.0.121) 6.25ms
2020-04-21 16:23:01,361: 304 GET /static/js/runcontrol.js (10.0.0.121) 3.54ms
2020-04-21 16:23:01,627: 404 GET /ws (10.0.0.121) 0.42ms
2020-04-21 16:23:57,914: 200 GET / (10.0.0.121) 328.06ms
2020-04-21 16:23:59,373: 404 GET /ws (10.0.0.121) 0.40ms
我觉得这非常接近成功(我可能错了),但我对web开发非常陌生。如有任何提示或建议,将不胜感激


编辑:多亏了@Ionut_Ticus和@Filip的建议,我上传了.css和.js文件,PythonAnywhere似乎能识别它们。它看起来更近了,图表和上面的面板都更新了。但是滑块不见了,当我点击开始时,图表并没有按预期的那样更新

server.log

2020-04-20 15:54:06 Mon Apr 20 15:54:06 2020 - received message 0 from emperor
2020-04-20 15:54:06 SIGINT/SIGQUIT received...killing workers...
2020-04-20 15:54:07 worker 1 buried after 1 seconds
2020-04-20 15:54:07 goodbye to uWSGI.
2020-04-20 15:54:07 chdir(): No such file or directory [core/uwsgi.c line 1610]
2020-04-20 15:54:07 VACUUM: unix socket /var/sockets/ABC123.pythonanywhere.com/socket removed.
2020-04-20 15:54:10 *** Starting uWSGI 2.0.17.1 (64bit) on [Mon Apr 20 15:54:08 2020] ***
2020-04-20 15:54:10 compiled with version: 5.4.0 20160609 on 09 January 2020 17:57:39
2020-04-20 15:54:10 os: Linux-4.4.0-1100-aws #111 SMP Thu Jan 9 16:34:29 UTC 2020
2020-04-20 15:54:10 nodename: blue-liveweb5
2020-04-20 15:54:10 machine: x86_64
2020-04-20 15:54:10 clock source: unix
2020-04-20 15:54:10 pcre jit disabled
2020-04-20 15:54:10 detected number of CPU cores: 2
2020-04-20 15:54:10 current working directory: (unreachable)/etc/uwsgi/vassals
2020-04-20 15:54:10 detected binary path: /usr/local/bin/uwsgi
2020-04-20 15:54:10 *** dumping internal routing table ***
2020-04-20 15:54:10 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2020-04-20 15:54:10 *** end of the internal routing table ***
2020-04-20 15:54:10 chdir() to /home/ABC123/
2020-04-20 15:54:10 limiting number of processes to 60...
2020-04-20 15:54:10 your processes number limit is 60
2020-04-20 15:54:10 your memory page size is 4096 bytes
2020-04-20 15:54:10 detected max file descriptor number: 123456
2020-04-20 15:54:10 building mime-types dictionary from file /etc/mime.types...
2020-04-20 15:54:10 552 entry found
2020-04-20 15:54:10 lock engine: pthread robust mutexes
2020-04-20 15:54:10 thunder lock: disabled (you can enable it with --thunder-lock)
2020-04-20 15:54:10 uwsgi socket 0 bound to UNIX address /var/sockets/ABC123.pythonanywhere.com/socket fd 3
2020-04-20 15:54:10 Python version: 3.7.5 (default, Nov 14 2019, 22:26:37)  [GCC 5.4.0 20160609]
2020-04-20 15:54:10 *** Python threads support is disabled. You can enable it with --enable-threads ***
2020-04-20 15:54:10 Python main interpreter initialized at 0x10bd320
2020-04-20 15:54:10 your server socket listen backlog is limited to 100 connections
2020-04-20 15:54:10 your mercy for graceful operations on workers is 60 seconds
2020-04-20 15:54:10 setting request body buffering size to 65536 bytes
2020-04-20 15:54:10 mapped 334256 bytes (326 KB) for 1 cores
2020-04-20 15:54:10 *** Operational MODE: single process ***
2020-04-20 15:54:10 initialized 38 metrics
2020-04-20 15:54:10 WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x10bd320 pid: 1 (default app)
2020-04-20 15:54:10 *** uWSGI is running in multiple interpreter mode ***
2020-04-20 15:54:10 gracefully (RE)spawned uWSGI master process (pid: 1)
2020-04-20 15:54:10 spawned uWSGI worker 1 (pid: 4, cores: 1)
2020-04-20 15:54:10 metrics collector thread started
2020-04-20 15:54:10 spawned 2 offload threads for uWSGI worker 1
2020-04-20 15:54:12 announcing my loyalty to the Emperor...
2020-04-21 16:23:32 Tue Apr 21 16:23:32 2020 - received message 0 from emperor
2020-04-21 16:23:32 SIGINT/SIGQUIT received...killing workers...
2020-04-21 16:23:33 worker 1 buried after 1 seconds
2020-04-21 16:23:33 goodbye to uWSGI.
2020-04-21 16:23:33 chdir(): No such file or directory [core/uwsgi.c line 1610]
2020-04-21 16:23:33 VACUUM: unix socket /var/sockets/ABC132.pythonanywhere.com/socket removed.
2020-04-21 16:23:45 *** Starting uWSGI 2.0.17.1 (64bit) on [Tue Apr 21 16:23:34 2020] ***
2020-04-21 16:23:45 compiled with version: 5.4.0 20160609 on 09 January 2020 17:57:39
2020-04-21 16:23:45 os: Linux-4.4.0-1100-aws #111 SMP Thu Jan 9 16:34:29 UTC 2020
2020-04-21 16:23:45 nodename: blue-liveweb5
2020-04-21 16:23:45 machine: x86_64
2020-04-21 16:23:45 clock source: unix
2020-04-21 16:23:45 pcre jit disabled
2020-04-21 16:23:45 detected number of CPU cores: 2
2020-04-21 16:23:45 current working directory: (unreachable)/etc/uwsgi/vassals
2020-04-21 16:23:45 detected binary path: /usr/local/bin/uwsgi
2020-04-21 16:23:45 *** dumping internal routing table ***
2020-04-21 16:23:45 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2020-04-21 16:23:45 [rule: 1] subject: path_info regexp: /.well-known/acme-challenge/ action: continue:
2020-04-21 16:23:45 [rule: 2] subject: path_info regexp: ^/ action: basicauth:Default Realm,admin123:agUgu8guyjhg
2020-04-21 16:23:45 *** end of the internal routing table ***
2020-04-21 16:23:45 chdir() to /home/ABC132/
2020-04-21 16:23:45 limiting number of processes to 60...
2020-04-21 16:23:45 your processes number limit is 60
2020-04-21 16:23:45 your memory page size is 4096 bytes
2020-04-21 16:23:45 detected max file descriptor number: 123456
2020-04-21 16:23:45 building mime-types dictionary from file /etc/mime.types...
2020-04-21 16:23:45 552 entry found
2020-04-21 16:23:45 lock engine: pthread robust mutexes
2020-04-21 16:23:45 thunder lock: disabled (you can enable it with --thunder-lock)
2020-04-21 16:23:45 uwsgi socket 0 bound to UNIX address /var/sockets/ABC132.pythonanywhere.com/socket fd 3
2020-04-21 16:23:45 Python version: 3.7.5 (default, Nov 14 2019, 22:26:37)  [GCC 5.4.0 20160609]
2020-04-21 16:23:45 *** Python threads support is disabled. You can enable it with --enable-threads ***
2020-04-21 16:23:45 Python main interpreter initialized at 0x1db2330
2020-04-21 16:23:45 your server socket listen backlog is limited to 100 connections
2020-04-21 16:23:45 your mercy for graceful operations on workers is 60 seconds
2020-04-21 16:23:45 setting request body buffering size to 65536 bytes
2020-04-21 16:23:45 mapped 334256 bytes (326 KB) for 1 cores
2020-04-21 16:23:45 *** Operational MODE: single process ***
2020-04-21 16:23:45 initialized 38 metrics
2020-04-21 16:23:45 WSGI app 0 (mountpoint='') ready in 10 seconds on interpreter 0x1db2330 pid: 1 (default app)
2020-04-21 16:23:45 *** uWSGI is running in multiple interpreter mode ***
2020-04-21 16:23:45 gracefully (RE)spawned uWSGI master process (pid: 1)
2020-04-21 16:23:45 spawned uWSGI worker 1 (pid: 4, cores: 1)
2020-04-21 16:23:45 metrics collector thread started
2020-04-21 16:23:45 spawned 2 offload threads for uWSGI worker 1
2020-04-21 16:23:45 announcing my loyalty to the Emperor...
错误日志

2020-04-20 15:54:12,530: 200 GET / (10.0.0.121) 9.19ms
2020-04-20 15:54:19,930: 200 GET / (10.0.0.121) 4.68ms
2020-04-20 15:54:20,138: 404 GET /static/css/bootstrap.min.css (10.0.0.121) 0.38ms
2020-04-20 15:54:20,147: 404 GET /static/js/jquery.min.js (10.0.0.121) 0.27ms
2020-04-20 15:54:20,148: 404 GET /static/css/bootstrap-switch.min.css (10.0.0.121) 0.26ms
2020-04-20 15:54:20,148: 404 GET /static/css/bootstrap-theme.min.css (10.0.0.121) 0.21ms
2020-04-20 15:54:20,159: 404 GET /static/css/bootstrap-slider.min.css (10.0.0.121) 0.20ms
2020-04-20 15:54:20,160: 404 GET /static/css/visualization.css (10.0.0.121) 0.28ms
2020-04-20 15:54:20,249: 404 GET /static/js/bootstrap-switch.min.js (10.0.0.121) 0.30ms
2020-04-20 15:54:20,250: 404 GET /static/js/bootstrap.min.js (10.0.0.121) 0.40ms
2020-04-20 15:54:20,250: 404 GET /static/js/bootstrap-slider.min.js (10.0.0.121) 0.25ms
2020-04-20 15:54:20,251: 404 GET /static/js/d3.min.js (10.0.0.121) 0.25ms
2020-04-20 15:54:20,267: 404 GET /static/js/ChartModule.js (10.0.0.121) 0.24ms
2020-04-20 15:54:20,287: 404 GET /static/js/NetworkModule_d3.js (10.0.0.121) 0.23ms
2020-04-20 15:54:20,347: 404 GET /static/js/Chart.min.js (10.0.0.121) 0.30ms
2020-04-20 15:54:20,358: 404 GET /static/js/TextModule.js (10.0.0.121) 0.29ms
2020-04-20 15:54:20,359: 404 GET /static/js/runcontrol.js (10.0.0.121) 0.23ms
2020-04-20 15:54:20,390: 404 GET /static/js/bootstrap-switch.min.js (10.0.0.121) 0.23ms
2020-04-20 15:54:20,513: 404 GET /static/js/bootstrap-slider.min.js (10.0.0.121) 0.33ms
2020-04-20 15:54:20,628: 404 GET /static/js/d3.min.js (10.0.0.121) 0.32ms
2020-04-20 15:54:20,796: 404 GET /static/js/ChartModule.js (10.0.0.121) 0.31ms
2020-04-20 15:54:20,920: 404 GET /static/js/NetworkModule_d3.js (10.0.0.121) 0.32ms
2020-04-20 15:54:21,100: 404 GET /static/js/Chart.min.js (10.0.0.121) 0.29ms
2020-04-20 15:54:21,208: 404 GET /static/js/TextModule.js (10.0.0.121) 0.30ms
2020-04-20 15:54:21,331: 404 GET /static/js/runcontrol.js (10.0.0.121)  0.36ms
2020-04-21 16:22:54,191: 200 GET / (10.0.0.121) 7.83ms
2020-04-21 16:23:00,511: 200 GET / (10.0.0.121) 3.87ms
2020-04-21 16:23:00,686: 304 GET /static/css/bootstrap.min.css (10.0.0.121) 13.36ms
2020-04-21 16:23:00,780: 304 GET /static/css/bootstrap-switch.min.css (10.0.0.121) 2.89ms
2020-04-21 16:23:00,791: 304 GET /static/css/bootstrap-theme.min.css (10.0.0.121) 2.23ms
2020-04-21 16:23:00,807: 304 GET /static/css/bootstrap-slider.min.css (10.0.0.121) 2.23ms
2020-04-21 16:23:00,881: 304 GET /static/css/visualization.css (10.0.0.121) 2.63ms
2020-04-21 16:23:00,902: 304 GET /static/js/bootstrap.min.js (10.0.0.121) 4.15ms
2020-04-21 16:23:00,906: 304 GET /static/js/jquery.min.js (10.0.0.121) 3.98ms
2020-04-21 16:23:00,983: 304 GET /static/js/bootstrap-switch.min.js (10.0.0.121) 4.12ms
2020-04-21 16:23:01,010: 304 GET /static/js/TextModule.js (10.0.0.121) 3.98ms
2020-04-21 16:23:01,015: 304 GET /static/js/bootstrap-slider.min.js (10.0.0.121) 2.93ms
2020-04-21 16:23:01,340: 304 GET /static/js/ChartModule.js (10.0.0.121) 2.33ms
2020-04-21 16:23:01,351: 304 GET /static/js/Chart.min.js (10.0.0.121) 6.25ms
2020-04-21 16:23:01,361: 304 GET /static/js/runcontrol.js (10.0.0.121) 3.54ms
2020-04-21 16:23:01,627: 404 GET /ws (10.0.0.121) 0.42ms
2020-04-21 16:23:57,914: 200 GET / (10.0.0.121) 328.06ms
2020-04-21 16:23:59,373: 404 GET /ws (10.0.0.121) 0.40ms

404get/ws
是什么?为什么只有滑块和文本没有显示?

如果我正确理解设置,您希望Tornado也为您的静态文件提供服务;要做到这一点,您必须让它知道在哪里可以找到它们。
尝试:

application=tornado.wsgi.WSGIApplication(
[
(r“/”app),
], 
静态路径=您的静态文件路径
)

正如@Filip所提到的,PythonyWhere似乎也可以为您提供服务。

在PythonyWhere“Web”配置页面上,静态文件的映射是什么样子的?我想我已经正确配置了静态文件,但不知怎的,滑块和文本元素仍然没有显示,页面也不会运行。任何建议都将不胜感激。我假设
/ws
实际上是一个Websocket,由于其异步特性,它可能无法与WSGI一起工作。如果你想在某处托管一个Tornado应用程序,有云提供商提供长达一年的免费试用。我读了这个页面,它似乎建议,如果你不需要使用异步功能,Tornado服务器仍然可以托管,但除此之外没有任何文档或教程。作为一个初学者,我不知道我是否应该继续尝试PythonAnywhere,或者切换到其他能够很好地使用异步的主机。你能告诉我它们是哪种云提供的吗?谢谢。谢谢,我试过你的建议,它进步了很多,但仍然不完全,请看我的最新帖子。