1没有报错。
22如下:
- Traceback (most recent call last):
- File "D:\BtSoft\panel/class\flask_sockets.py", line 30, in __call__
- handler, values = adapter.match()
- File "C:\Program Files\python\lib\site-packages\werkzeug\routing.py", line 1581, in match
- raise NotFound()
- werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manu
- ally please check your spelling and try again.
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "D:\BtSoft\panel\BTPanel\__init__.py", line 1220, in publicObject
- if not get: get = get_input()
- File "D:\BtSoft\panel\BTPanel\__init__.py", line 1414, in get_input
- if 'form_data' in g:
- File "C:\Program Files\python\lib\site-packages\werkzeug\local.py", line 379, in <lambda>
- __contains__ = lambda x, i: i in x._get_current_object()
- File "C:\Program Files\python\lib\site-packages\werkzeug\local.py", line 306, in _get_current_object
- return self.__local()
- File "C:\Program Files\python\lib\site-packages\flask\globals.py", line 44, in _lookup_app_object
- raise RuntimeError(_app_ctx_err_msg)
- RuntimeError: Working outside of application context.
- This typically means that you attempted to use functionality that needed
- to interface with the current application object in some way. To solve
- this, set up an application context with app.app_context(). See the
- documentation for more information.
复制代码
|