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

楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
$ ?2 N1 S: `- l$ i7 _" S0 f7 A- L' kWatching for file changes with StatReloader* j0 T+ i) t" D' O. w+ ~4 u ~. e
Performing system checks...
5 U% T4 A! ?8 \6 G) a3 N. o
8 ?0 E( t4 T* E+ H8 a) `: E8 g8 jException in thread django-main-thread:% M6 ]* `$ I, Q1 H) i6 j5 P3 e
Traceback (most recent call last):
% ] _9 J3 M- ]7 ?0 @" J2 o, M File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
) Z0 c6 P* T/ }4 V' X( r5 J self.run()7 f6 K5 ?) m3 o$ V
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
) K9 N% U5 S6 _% @# _! }5 Q4 \6 j self._target(*self._args, **self._kwargs)
3 Y. @' o! m6 @; k+ k. y: m( b5 g+ { File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
( U' R" |/ F' W6 l fn(*args, **kwargs). V) W$ L* k, L9 g6 G N; q# t9 U
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
% \) {$ v8 ]2 @: c; P9 w/ y self.check(display_num_errors=True)
- f% p5 V% q" }- r- |9 n% ?8 k File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check
; @% Q9 o/ Y! F& Q all_issues = self._run_checks(6 W: ]& `2 B c( E
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
2 g) X; ]; A( ~* G return checks.run_checks(**kwargs)
/ c. O5 Z- x- P( ? File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
8 H0 O4 ^0 T! H) S1 c: m new_errors = check(app_configs=app_configs); D6 Y9 u# m$ E& P m$ ~7 f9 O- m
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models1 y3 L& h) a0 k$ m
errors.extend(model.check(**kwargs))
: H, e4 Q7 ?5 n9 ]1 b6 J# u. Y0 @ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check
# S1 }! [4 K V7 i *cls._check_constraints(),
% p6 c) Y2 _ h; o5 `6 B File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints
! {! E1 E, O [: V connection.features.supports_table_check_constraints or J. j* v. _) }" g; h
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__2 w) P" B: @* B) L: q9 w! E' r& l, S) K
res = instance.__dict__[self.name] = self.func(instance)
) K. |" O- H% D' S: ~ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints2 k3 Q6 L8 |+ ^; @5 D8 U
if self.connection.mysql_is_mariadb:
% V' \6 \3 T" a7 q4 s File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
: x p+ D0 H. @: J q9 L6 J. O2 b res = instance.__dict__[self.name] = self.func(instance)
0 N" \( v5 y$ x File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb
1 A0 I' \- d, L3 m return 'mariadb' in self.mysql_server_info.lower()
6 h0 c; M$ l: X2 p: w File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
& w# \7 m' H _3 x1 m4 h7 v; n res = instance.__dict__[self.name] = self.func(instance)
, p, y2 L4 a# }- C- k- h File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info
5 A4 k# i9 Z a% D+ h+ O. } cursor.execute('SELECT VERSION()')
) h }+ B* v8 q/ `+ j9 \& G4 ` File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute
2 j9 q7 a# W( j R! W return super().execute(sql, params)% m2 y5 y5 d- Q9 ?( c
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute/ h- [ K4 [6 y5 `5 I8 m
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute), l" m5 P) S5 A& z& C% d
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
8 y! W' K7 _4 R3 s8 w7 y return executor(sql, params, many, context)
3 @; ^8 t1 k9 a: t' @) m File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
2 T' n# l- r2 j5 [, y8 S return self.cursor.execute(sql)) W) }+ \ ~$ U) f/ J9 p6 a# i+ N( U Y
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute0 s0 @( U! ]- g% \' U+ J
return self.cursor.execute(query, args)% d. A0 Z* s9 E4 z& ]
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute+ p4 I1 ]2 \" a1 G' P: r- Z
res = self._query(query)' d/ f$ \" e% D. l g/ Z
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query: [3 h: g+ C1 |2 e( c
self._post_get_result()- k e9 k5 J1 }; `
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result
- N: M! y5 }+ W self._rows = self._fetch_row(0)2 Z9 ]8 @: {/ D
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row; \. N+ z0 l# D! ?
return self._result.fetch_row(size, self._fetch_type)
! w1 N8 {9 ]1 J }; H: xdecimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]4 D8 O. W* Y5 J% j4 ]' i
C:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.8 N O3 v/ @( M+ M
Watching for file changes with StatReloader
4 d- z* V( S' m9 [9 {5 Z% i: N, X4 ZPerforming system checks...
9 [' r* B' I# W& ?1 d9 M: E
. L: W+ O4 g, D. i: eException in thread django-main-thread:
6 b4 C! o4 A: R3 a5 {8 o/ WTraceback (most recent call last):3 [/ t( Y m3 I8 T
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner$ {; ]4 v( ^7 E/ N8 \
self.run()
* R% H _" O, | File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
3 v. R+ {; V( X4 T" ~8 | self._target(*self._args, **self._kwargs)
- H" `6 W7 X, C/ O8 K" M! q File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper0 A* z% ?" E5 x& z
fn(*args, **kwargs)
% b: l; c6 V% ]+ e2 r5 w/ V1 R File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run! Q' r0 e, H+ s$ E0 h3 m5 L; W
self.check(display_num_errors=True)
* C6 h* D- z$ R) Y3 o, j& v File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check7 R1 j* P- f- r, T/ y$ m
raise SystemCheckError(msg)
& b/ h+ S2 [, C) y3 idjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:& Y% c1 o) j3 E F
# H% w, C+ e) ]! {; hERRORS:- b6 J. V: D" `
accounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.9 b6 m q$ c: ]
% q7 i m4 E5 {+ d
System check identified 1 issue (0 silenced).9 K' F7 n' ~4 ] l! l
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
A" t' O: }: O, jPerforming system checks...2 A& D) {- g$ I. A+ h. l) N
( [. f2 e* j$ f7 d( N5 J. HWatching for file changes with StatReloader( ~$ v' u, \ { F* V# }
Exception in thread django-main-thread:
& `5 p: S H) O' n- q& b. STraceback (most recent call last):, b' Y0 q7 o4 R
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
5 V- k& B% u& }" K. N- w self.run()5 C5 ~0 [. p, O+ ]
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run# O# I" [. R$ m1 y
self._target(*self._args, **self._kwargs)) D' B X9 B2 s/ o0 \9 |7 U3 g
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
( _' X+ Q* _) s fn(*args, **kwargs)6 V6 W, a, O K; Z/ m- l
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
6 D/ T$ l5 l* M/ h0 v self.check(display_num_errors=True)9 ^3 }1 X3 O. \+ q8 g% Q( q, o1 m' Q [
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
4 |( D8 S) Z5 c, i, R+ |4 k raise SystemCheckError(msg)
5 d6 d3 Z1 q- m# ~% t8 l& W1 Cdjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
/ a6 Q! I5 k( [ F. E
. f9 a2 o5 s; m2 W" H3 n* KERRORS:
, x0 m h( g Y% qaccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
/ O% ?5 ~0 ]) i( v" V* V% z6 G' U- y" t& Q: d
System check identified 1 issue (0 silenced).4 n% @# D1 I; g2 X1 C) y* D
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.( ` h. C- w' D- A
Performing system checks...
; ^3 F0 g: w; f2 W( Q' Y) m T: r
4 h+ b% ]7 b6 ZWatching for file changes with StatReloader4 [& t) S( m& E# _
System check identified no issues (0 silenced).0 a" h; j, f4 l. g6 ]. g! D3 h
9 W3 C% m) z7 J+ h" E- U& f! M4 G3 ^
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.4 P2 L' j0 `8 e# ]/ ~
Run 'python manage.py migrate' to apply them.
/ x" z6 D- `6 l: D$ EApril 30, 2025 - 08:20:31$ ?9 o- M; F5 S9 m- d
Django version 3.0.5, using settings 'testmyproject.settings'
! ]5 Z$ ~( ]) E. s/ j* RStarting development server at http://0.0.0.0:5000/5 ]3 i, `- U8 N# f
Quit the server with CTRL-BREAK.
2 i. u( C, U. J8 uC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
$ g4 ^# d; O" c8 @8 U+ H% hPerforming system checks...
6 h7 x; f6 b* D. M6 ^& Z& s/ v6 i }6 S/ L0 k) I' T0 Z
Watching for file changes with StatReloader
' ?8 z B% L7 N# L Z' ]System check identified no issues (0 silenced).' c) ^2 H+ y& M' W0 t( J2 t) M
# g, t, _/ A F* B/ e* z$ R8 j
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
( h2 p* ^9 V' \1 [. W8 n) v1 VRun 'python manage.py migrate' to apply them.
3 }4 H- w8 h$ ]+ C% a* WApril 30, 2025 - 08:21:21
: c& H: `, f ^$ F7 _7 PDjango version 3.0.5, using settings 'testmyproject.settings'
) E4 D2 F6 d: Q" S/ o" tStarting development server at http://0.0.0.0:5000/* R L1 a: V- T% g) ^2 K% M3 O
Quit the server with CTRL-BREAK.
+ a% @4 D( I: D7 g. w' B aC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
+ g2 t6 y) k/ m) \- P2 rPerforming system checks...0 R( O+ ^# K9 N6 J
+ Q2 u7 Y6 X/ Z% n9 ?7 ^Watching for file changes with StatReloader" ^& }* O1 E% M9 O$ F1 _, G2 V# B( c& n
System check identified no issues (0 silenced).% E D& X7 R& E) u, n
2 s! @( v, R6 t# V. x8 f! i) i
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
% ?# O4 @7 w8 x8 SRun 'python manage.py migrate' to apply them.8 v" P- m. \6 ]
April 30, 2025 - 08:21:24
+ D* [3 o. g @8 ADjango version 3.0.5, using settings 'testmyproject.settings'
7 D: T4 d9 `1 f! K1 @) ~" ]Starting development server at http://0.0.0.0:5000/1 s/ }! |: \9 O
Quit the server with CTRL-BREAK.
$ s# M& l" h! H, `: ?7 F% }C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.1 i3 t, G" j/ Q2 Q; ]- \4 s
Watching for file changes with StatReloader
` R8 g4 Q. j: uPerforming system checks...
) V" j2 O1 r: _: o
4 @. M& @3 P0 C: W7 ^; `System check identified no issues (0 silenced).# ^+ o8 i& H1 A4 k5 ?, @
% d; ]5 x; h. F1 aYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions., z0 G" D4 P9 p7 S* I+ ]' c3 M
Run 'python manage.py migrate' to apply them.
- H% y" J1 \- y: ^. G3 OApril 30, 2025 - 08:21:31
* d) Q- P; ~0 \: U; G6 J! uDjango version 3.0.5, using settings 'testmyproject.settings'
& ~0 ]0 l# ^7 l$ \; d7 E0 t2 _Starting development server at http://0.0.0.0:5000/- k" u" p/ a& K' d0 o$ i& E# s
Quit the server with CTRL-BREAK.; X/ c$ R# j* u
|
|