 PyWebIO v1.2.3 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 92 页 | 1.32 MB | 1 年前3 PyWebIO v1.2.3 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 92 页 | 1.32 MB | 1 年前3
 PyWebIO v1.2.2 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 92 页 | 1.35 MB | 1 年前3 PyWebIO v1.2.2 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 92 页 | 1.35 MB | 1 年前3
 PyWebIO v1.3.3 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.3 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.3 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.3 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.1 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.1 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.1 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.1 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.0 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.0 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.0 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.0 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.2 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.2 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.2 Documentationin PyWebIO, so there is no the issue as described above. Static resources Hosting By default, the front-end of PyWebIO gets required static resources from CDN. If you want to deploy PyWebIO applications applications in an offline environment, you need to host static files by yourself, and set the cdn parameter of webio_view() or webio_handler() to False. 24 Chapter 4. Documentation PyWebIO, Release 1.3.2 When need to host the static resources in the same directory as the PyWebIO application. In addition, you can also pass a string to cdn parameter to directly set the URL of PyWebIO static resources directory0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.2.3 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 119 页 | 7.43 MB | 1 年前3 PyWebIO v1.2.3 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 119 页 | 7.43 MB | 1 年前3
 PyWebIO v1.2.2 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 119 页 | 7.41 MB | 1 年前3 PyWebIO v1.2.2 Documentationioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello with the browser through HTTP: from pywebio.platform.flask import webio_view from pywebio import STATIC_PATH from flask import Flask, send_from_directory app = Flask(__name__) # `task_func` is PyWebIO from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 119 页 | 7.41 MB | 1 年前3
 PyWebIO v1.6.3 Documentationopen('/path/to/some/image.png', 'rb').read() put_image(img, width='50px') put_image('https://www.python.org/static/img/python-logo.png') pywebio.output.put_file(name, content, label=None, scope=None, position=- refer pywebio-path-deploy --help pywebio.platform.path_deploy(base, port=0, host='', index=True, static_dir=None, recon- nect_timeout=0, cdn=True, debug=False, allowed_origins=None, check_origin=None, app file to the directory. • static_dir (str) – Directory to store the application static files. The files in this di- rectory can be accessed via http:// PyWebIO v1.6.3 Documentationopen('/path/to/some/image.png', 'rb').read() put_image(img, width='50px') put_image('https://www.python.org/static/img/python-logo.png') pywebio.output.put_file(name, content, label=None, scope=None, position=- refer pywebio-path-deploy --help pywebio.platform.path_deploy(base, port=0, host='', index=True, static_dir=None, recon- nect_timeout=0, cdn=True, debug=False, allowed_origins=None, check_origin=None, app file to the directory. • static_dir (str) – Directory to store the application static files. The files in this di- rectory can be accessed via http://- : - /static/files. For exam- ple, if there 0 码力 | 108 页 | 1.37 MB | 1 年前3
 PyWebIO v1.6.1 Documentationopen('/path/to/some/image.png', 'rb').read() put_image(img, width='50px') put_image('https://www.python.org/static/img/python-logo.png') pywebio.output.put_file(name, content, label=None, scope=None, position=- refer pywebio-path-deploy --help pywebio.platform.path_deploy(base, port=0, host='', index=True, static_dir=None, recon- nect_timeout=0, cdn=True, debug=False, allowed_origins=None, check_origin=None, app file to the directory. • static_dir (str) – Directory to store the application static files. The files in this di- rectory can be accessed via http:// PyWebIO v1.6.1 Documentationopen('/path/to/some/image.png', 'rb').read() put_image(img, width='50px') put_image('https://www.python.org/static/img/python-logo.png') pywebio.output.put_file(name, content, label=None, scope=None, position=- refer pywebio-path-deploy --help pywebio.platform.path_deploy(base, port=0, host='', index=True, static_dir=None, recon- nect_timeout=0, cdn=True, debug=False, allowed_origins=None, check_origin=None, app file to the directory. • static_dir (str) – Directory to store the application static files. The files in this di- rectory can be accessed via http://- : - /static/files. For exam- ple, if there 0 码力 | 108 页 | 1.37 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9














