- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2024-5-28 13:57:16
|
显示全部楼层
C:\Users\admin\Desktop\test_flask\venv\Scripts\python.exe -m flask run -h 0.0.0.0 -p 80809 h* _" V0 |3 i; m- g
* Serving Flask app "app.py" (lazy loading)
4 O7 b' x+ M, ?- s. H2 v! D * Environment: development
) G& N+ P3 U' a' z1 W* a * Debug mode: on
- M$ h. f: Z, y, {& r9 t * Restarting with stat
2 y- H; e) W! @5 `0 g' _! y3 b * Debugger is active! h3 y9 N; g8 c& n% a8 B" C ~7 z$ l
* Debugger PIN: 215-100-437' ]& Y" c ? z' t" x
* Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)! e' \ t2 U e: u+ N5 w: E
127.0.0.1 - - [28/May/2024 13:56:09] "GET / HTTP/1.1" 500 -
& P! D" \+ x( X$ iTraceback (most recent call last):6 h6 [6 G9 c- J0 o! z& o
File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 240, in locate_app+ B1 j$ z) c# y* Q6 x( C
__import__(module_name)
' k' q: V* k) [" ]9 bModuleNotFoundError: No module named 'app'9 `- [" S r% z( a0 Y
/ o! |7 B; Z) m' S' K8 u1 n6 H
During handling of the above exception, another exception occurred:
; L) h: ~2 y: ^
* x) D. h3 V2 q% K* C) b5 l1 mTraceback (most recent call last):; Y* J, ^& L( m( w+ w" g
File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 338, in __call__
5 U2 v0 U+ k, H: V E5 @2 C self._flush_bg_loading_exception()8 E7 [6 l' F2 k0 T
File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 326, in _flush_bg_loading_exception
6 Y: Y% j; I9 m- e- K2 p% a i reraise(*exc_info)
1 M2 ^# w( r! W) h& q" X. V5 A7 Q File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\_compat.py", line 39, in reraise T( L. S7 I* E" j0 _
raise value. G6 E2 H- O/ L5 g
File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 314, in _load_app; l. L! C% u, c; Z# H9 M ~5 ?8 C
self._load_unlocked()% U/ D8 L4 w1 m: b( g
File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 330, in _load_unlocked- L# O$ C5 A$ ^) i& r9 G& m2 W
self._app = rv = self.loader()
( R5 G: I" l, P1 ?0 p3 C/ k File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 388, in load_app
. g- R* e& R# C" D" C! G app = locate_app(self, import_name, name)
' y- D5 |/ P* }9 P' J7 S File "C:\Users\admin\Desktop\test_flask\venv\Lib\site-packages\flask\cli.py", line 250, in locate_app9 U. o% P" |( G4 g8 A0 b* x8 y+ e- d6 \
raise NoAppException('Could not import "{name}".'.format(name=module_name)), j3 ?# b6 J% L. |5 t
flask.cli.NoAppException: Could not import "app".
& H$ N% R2 o# p0 h8 r127.0.0.1 - - [28/May/2024 13:56:09] "GET /?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
" h4 M" T0 Q- i, u& J127.0.0.1 - - [28/May/2024 13:56:09] "GET /?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
u: l' y6 a' o9 Z. w127.0.0.1 - - [28/May/2024 13:56:09] "GET /?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -3 \: n7 ~9 x6 |
127.0.0.1 - - [28/May/2024 13:56:09] "GET /?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
# {$ |0 x0 Z2 v+ x7 E& A2 ?127.0.0.1 - - [28/May/2024 13:56:09] "GET /?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -0 \) X, L% H+ ]6 G; N0 s7 M! X
127.0.0.1 - - [28/May/2024 13:56:09] "GET /?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 - |
|