|
|
楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
0 W8 \9 t% b4 l9 j% c8 UWatching for file changes with StatReloader, C: ?4 {2 W+ o6 g* X: T( t1 w
Performing system checks...
" ^8 c& b% ]. O4 o# m1 S, i
7 b7 G2 ~! Z4 m) S3 t& ]Exception in thread django-main-thread:
" N+ k" Y8 e) g% g N0 W, z9 Y. UTraceback (most recent call last):
2 r# s9 L; d) M. _+ D/ r# t3 j" u File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner" T1 s; v( r" _' ^! s
self.run()
" U$ W) U2 S/ N File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
/ Q% [8 S, O7 X/ P self._target(*self._args, **self._kwargs)/ Q% R$ V6 \6 C' m9 q- W, x4 _% K7 v$ F
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
4 @( i6 U# N8 }4 |, n* D fn(*args, **kwargs)% k* f6 m; q& O B+ B' S
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
2 r# d I8 `% [ o8 A. j1 F self.check(display_num_errors=True) F# s1 w1 t. W
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check, j! M2 a- r/ l* v( |* H- q5 k
all_issues = self._run_checks(
" R( u4 z% _. I: p% `/ p2 ? File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
) J; V1 S( h# G return checks.run_checks(**kwargs)
3 {, {9 {( b" T: _5 ] File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks; @1 ?9 C" H! i2 J
new_errors = check(app_configs=app_configs)
0 n3 }3 `9 c0 B) } File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models# {8 h" N2 T R! O/ v- k; a
errors.extend(model.check(**kwargs))4 `8 i" ]3 f8 {8 u
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check8 `$ Y+ b o8 b& T' ]9 d- O
*cls._check_constraints(),
4 j9 f# m* [* y2 N File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints$ S! B C+ u% ~0 o" u, w' \
connection.features.supports_table_check_constraints or
a6 Z% q. Q) r) M6 d: X: h File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
+ [! U3 E% ?( e6 W; f res = instance.__dict__[self.name] = self.func(instance)# j- Q+ w7 J: S9 t: K
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints
1 Z* H. [3 }4 o, G if self.connection.mysql_is_mariadb:
$ B7 |5 @# J- j/ k File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
9 T8 g; ]1 }' v- a& x0 O1 t6 W) r; B res = instance.__dict__[self.name] = self.func(instance)3 x7 B6 v/ U7 b' E9 \3 {
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb% i: l; o! i/ N8 ^# `/ P) h
return 'mariadb' in self.mysql_server_info.lower()3 G" l6 n) [7 C/ K6 {
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
' e) {: t) c: r2 r3 D+ G res = instance.__dict__[self.name] = self.func(instance)
1 O5 p" t: M. p8 \$ _! l; X File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info
7 r# N9 d( ?" e cursor.execute('SELECT VERSION()')
4 t3 |# y& F+ A0 O1 \3 r f! S File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute; @ e z# D* Y- @$ _( w
return super().execute(sql, params)$ k1 Y1 z$ z# V, G- U' B j
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute0 ?: c/ ]: r3 ?( w
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
4 }. \0 q% D R/ y: i File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers9 n0 G) k1 A4 i
return executor(sql, params, many, context)# |1 w* ?4 f: K
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
0 d% w' ?/ L+ d* U return self.cursor.execute(sql)
1 z. g0 P6 x' q' M- \ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute
/ x' L! g4 ?8 P% K+ T8 [) d return self.cursor.execute(query, args)
, d m- M0 C( T- i$ z File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute P, j3 N! S- N/ f
res = self._query(query)4 o7 Z$ n [9 q$ f
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query Q; F. B( ^3 [' P. e/ s$ E
self._post_get_result()
$ B9 R1 E% T' p File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result9 I7 v: s: m- ?* t
self._rows = self._fetch_row(0)0 H6 ~& k1 N( d- v4 c
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row7 a1 J( q0 I3 [0 c8 L. ~9 \ w
return self._result.fetch_row(size, self._fetch_type)4 z6 n4 d) I% I9 K! _7 U: d
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
6 n. a" j- C' ZC:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.
8 c9 Y4 ]) V) k# NWatching for file changes with StatReloader
% T7 z, u, g- I9 y" h* ^Performing system checks...: S( m Z C+ ^2 x8 L& K
* `. z3 d# D- p- c4 ? wException in thread django-main-thread:2 y+ v( c- J0 I1 p0 q0 b! e
Traceback (most recent call last):6 V, j: ]9 `5 [ C1 o M
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner" D0 b0 e, W. s: U& Z; w' s9 I
self.run(); w& h$ |6 Z& P" w8 i: `+ m
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
. m! l3 l5 k" }( E' L self._target(*self._args, **self._kwargs)* U' b& [; x# s2 o$ f/ z
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
' _: Z* z/ R' p8 r8 B; p fn(*args, **kwargs). [; f# Q$ } Y6 r! L l b- n, a
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
7 P" v v7 ^+ `2 P* d self.check(display_num_errors=True)8 p4 `5 S8 M. }' O, b+ l5 G
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
( p3 y. Q% m3 t, p1 D raise SystemCheckError(msg)# Q, [# F/ _5 U- P
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:! W+ M/ z. w! Q
: \; [3 l" x. `1 _% |$ O& D1 H( H; |; r
ERRORS:; ?$ }! S( ]" o$ y. q6 [
accounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255. L0 E! T" }3 }2 `1 N* S; A
8 r! {/ h6 H' \$ U- ]System check identified 1 issue (0 silenced).' s9 H) n( Y: Z" p1 C$ j M8 p% L
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
1 d5 `, Q$ S, l3 v+ sPerforming system checks...
; t! n* {0 e( R2 W# L& o$ Z* B0 v4 S U3 O
Watching for file changes with StatReloader/ q0 I6 F- q8 _0 L) A5 g5 Q
Exception in thread django-main-thread:) h1 ~3 v( [) s: q. B
Traceback (most recent call last):
. W2 Q/ y2 E# [* X File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
. m2 Y7 L1 \: p, I9 m3 o$ L self.run()6 g( k. R5 h2 `( L2 d4 D
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run2 h& K# F7 k% V
self._target(*self._args, **self._kwargs)* l! q% n8 c3 F- r
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
0 t% m5 T: J0 x- Q& Y$ E! k3 E u Z+ p fn(*args, **kwargs)
. M; a5 A6 _1 _0 q( } File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
$ N( C I/ }$ s! B% ` self.check(display_num_errors=True)
3 i5 x7 z$ w$ T File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check! I0 v- _1 R7 g/ O) U
raise SystemCheckError(msg); C- G4 B) n: Z; \/ {
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
4 [3 b I) F7 |# m6 k7 X7 F+ E: l/ @9 ]: D( Z, i7 ^
ERRORS:
L- @% Y4 N oaccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
5 A1 p% c# [( { S0 q, U1 ^/ B1 V6 a5 `: h" G: f* `1 f
System check identified 1 issue (0 silenced).- w Y, h/ M5 j* V& B# z
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
' Z5 j/ f4 ~* R( p( I% \. a/ X, `Performing system checks...8 C$ o6 Z1 H2 g, i, O R
4 s& \6 j/ E; n! @$ A2 |; e8 I* H
Watching for file changes with StatReloader, m; A# ^5 ^6 h6 s/ }3 D8 H0 @
System check identified no issues (0 silenced).8 D3 `) X8 z/ |. N3 }
2 _7 s. I$ g# \8 K
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
# }5 S$ E7 V1 q0 KRun 'python manage.py migrate' to apply them.5 h- {* V! `3 X, e6 V" O
April 30, 2025 - 08:20:31 R' Q: Z9 c! v8 {
Django version 3.0.5, using settings 'testmyproject.settings'% ?7 r |5 _% p" L
Starting development server at http://0.0.0.0:5000/
; h2 t0 x$ i3 e; l2 J; r6 Q0 ^ C2 a1 JQuit the server with CTRL-BREAK.
% `8 E d$ z. V' CC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.5 u4 `+ o Z9 t' Y! T' E
Performing system checks...
% ~' {; p& O, x; f
& \& D; J2 _$ q) Y! AWatching for file changes with StatReloader, R. A! T, p! W# G) _; T$ H& I
System check identified no issues (0 silenced).- v9 J! h" x- _! F; s
1 F8 v* c0 F: o. f: d! v+ _You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
9 P, Y+ ]! \' PRun 'python manage.py migrate' to apply them.3 U5 q0 U0 @3 O0 P! C O; ]
April 30, 2025 - 08:21:21
5 ?# ^1 q; a* `/ [Django version 3.0.5, using settings 'testmyproject.settings'
* p( C0 d6 b* _- J7 A" M+ nStarting development server at http://0.0.0.0:5000/
! V- m7 C k" v5 jQuit the server with CTRL-BREAK.% y; Z, `- y, @ i# m
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
7 N1 p1 L6 w) c) c6 U7 X! O+ t1 d3 C- J7 TPerforming system checks...4 ?7 s! `) U& `+ }7 a
/ \" f, w8 n3 T- t$ S: Y: [Watching for file changes with StatReloader
2 {0 V2 _. [1 R4 d5 H$ hSystem check identified no issues (0 silenced)./ m, l' j& w* l$ z
% a$ z2 `: B# b6 _, n, W% F
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
5 \& y, x; }, w1 h, s- gRun 'python manage.py migrate' to apply them.. X; B* O) y( U- R8 v; w# K ?2 k
April 30, 2025 - 08:21:24! \5 S$ H% l8 Q& E+ e
Django version 3.0.5, using settings 'testmyproject.settings'2 s- n7 O0 T8 S% ]3 o5 ?5 Q
Starting development server at http://0.0.0.0:5000/. W I9 A: ]3 V
Quit the server with CTRL-BREAK.
A2 X- Z9 d6 J% H7 {8 RC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
0 X9 u, X8 n. ` P1 RWatching for file changes with StatReloader
$ s& U4 v; b9 I" K6 xPerforming system checks...1 J& w' h: l, E- j9 [/ I7 H
4 o0 R; |5 t8 K4 S
System check identified no issues (0 silenced).
! r0 y/ K- y; n# Y; }1 V* p, _, \! V6 C z# ` h7 B
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
( U7 P2 ~0 M6 J J8 \Run 'python manage.py migrate' to apply them.
6 G% A. B3 D) a- Z& `April 30, 2025 - 08:21:31$ l( d, p- A9 q0 F3 R* n) Q) ~: E
Django version 3.0.5, using settings 'testmyproject.settings'
# p) m* C2 N' j& w) H1 cStarting development server at http://0.0.0.0:5000/
% |) ?* I" |, L7 s( D% ? m- lQuit the server with CTRL-BREAK.' m7 L3 y+ a2 V$ P3 a8 [
|
|