|
|
楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
9 C3 h* _. ^# b) b6 Y- M# D; uWatching for file changes with StatReloader
7 n6 u/ M1 M( y9 `( {6 {5 WPerforming system checks...
/ E7 [5 @5 M) Y) o, C/ _0 y( `$ {( v1 n0 s6 M' I
Exception in thread django-main-thread:( ^9 T! x) V" q, g( g( W' g
Traceback (most recent call last):, I1 x: S9 X, f
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
/ `8 D: g- h3 x1 Q& S self.run()
1 G+ w9 a6 T, p8 z$ j" ]/ h! i File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
- n# B! m& G5 j/ F self._target(*self._args, **self._kwargs)
8 F0 x ]! i* N( n. N, u) I/ F File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
9 p* p6 R; z+ R% {% E fn(*args, **kwargs)* c- W: U2 G* _
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
9 L( R+ i& e2 W( F: u. n; V% o4 C0 L self.check(display_num_errors=True), ]! z/ ^7 x3 O: S# d2 h% u# \
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check' |& _( o# ^* {) l J" O' n+ r J3 P
all_issues = self._run_checks(
9 G: w% ~ l. K% _ g+ ^ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
* z' z3 \) D' R% C+ N6 r" R return checks.run_checks(**kwargs)
2 u. j/ F5 s. D: k2 ?8 T File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks5 C- c% y& I- q# M+ x' ]) @
new_errors = check(app_configs=app_configs)3 Z/ o ?3 @$ `! e
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models
7 ~2 ~4 y% _+ Q+ q( V errors.extend(model.check(**kwargs))
7 A: Z) t7 ]" V9 o# w& x File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check
4 o, }: g' g0 F *cls._check_constraints(),
Z+ `% e1 `- `; [! ?& q8 V6 ^$ { File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints
4 n. ^& ~8 s9 F! ~4 t+ u connection.features.supports_table_check_constraints or/ G1 }' K! f0 L( O& ]( u
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
2 p/ z+ y' w8 Y% m+ O- A res = instance.__dict__[self.name] = self.func(instance)! ?/ W: Q7 ^$ D* j, E& R
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints
+ j' y$ D* X# |6 l, S7 | if self.connection.mysql_is_mariadb:
% i+ i5 c; w. l @; r: z File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__" ~1 [7 F; q/ t% E/ E
res = instance.__dict__[self.name] = self.func(instance)
6 `+ r6 D( E: H% c; j- y C File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb, r8 I" D4 Y1 w2 P0 v
return 'mariadb' in self.mysql_server_info.lower()
7 L( O/ {3 Z- m# O/ d File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__) y. d! \) X O! X l
res = instance.__dict__[self.name] = self.func(instance)' ?! G& O8 M+ V3 e- B$ d* S
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info7 I3 j6 `7 `" W- S
cursor.execute('SELECT VERSION()')
# O; }# N8 L" ^3 Y4 D File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute
0 d @' y5 ]/ e* ` return super().execute(sql, params) ?3 M% T U, Z* O. [/ U E! g
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute2 G3 j3 o6 W+ {$ _1 E
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)$ x2 e# g% ^( e& K
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers5 U( x1 \$ e4 A
return executor(sql, params, many, context)' [; R1 U: I/ @. U4 t2 z! O! n4 ~- m. L
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
3 {, p% h: T7 {; ?/ d& |" P return self.cursor.execute(sql)
# d+ |! F8 { @' A File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute
. y1 k2 M6 y* Z5 U6 Q# w return self.cursor.execute(query, args)
; y& {, z. L' i File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute
r1 Z$ `0 U% G5 {8 ^3 V- ?- V' U res = self._query(query), D$ c$ Z5 v- Z2 Y1 V$ I5 L- K
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query( B: ]0 ^3 D3 p, a" U" s$ u
self._post_get_result()
: h! j {9 S9 \- Q2 {) r File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result
0 q( m8 U; v& x& h self._rows = self._fetch_row(0): `7 I- e9 J5 T2 H' @9 e$ R
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row
7 F& j' B+ }+ q2 j" M' f return self._result.fetch_row(size, self._fetch_type)3 p1 Y& s9 c5 M! G
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]: \* W$ s4 e4 d" d# @5 d
C:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.! U: [8 e9 u v+ C
Watching for file changes with StatReloader
+ x; [+ Q# ~- {" VPerforming system checks.... t8 _& y& ^" f5 U
3 N( O4 I' F9 UException in thread django-main-thread:
- F0 ?; ^2 J1 @& n6 HTraceback (most recent call last):' |) C6 [% N+ ?( U0 V
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner1 |7 k% b6 m9 \" l/ H2 y
self.run()/ v1 d n% a* d7 Z! U& Z( C6 a
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run& E% y$ J9 H* g
self._target(*self._args, **self._kwargs)+ I, s/ X8 q7 C* p' V. a
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
9 _4 ?: A; y2 f4 w' Q% R7 K; i! q fn(*args, **kwargs)
5 f& s7 E7 c5 ~3 [9 H0 X5 q File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
6 I7 ~6 h4 f% b7 y1 H- L" }4 e4 N. ? self.check(display_num_errors=True)& z4 |7 T" [8 t, w" L3 s
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
' U& y; r C5 T( K raise SystemCheckError(msg)6 N9 v) o( S+ a2 x: \
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
6 B+ F7 s8 n& F8 ?* T2 @
& B' M( t: ]( V4 H0 }0 b& xERRORS:
; P; ^* f- r* F+ G$ Caccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
. b& }. A' b0 p' z
: V+ w, g" F1 q: nSystem check identified 1 issue (0 silenced).! u" k t7 w0 U/ H
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
4 C4 k8 S& r7 ~# _" h# q# PPerforming system checks...7 E9 @/ a% s( \. D+ Z" n
4 G, X2 ? }$ H( Q% y+ x9 U
Watching for file changes with StatReloader% o l$ j5 x6 L
Exception in thread django-main-thread:0 U/ N+ s! M( G/ r
Traceback (most recent call last):0 X0 n; b$ b# g+ H3 f$ e# x
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
% b0 n& }1 Q* N$ w4 c( N. N self.run()( [& ^2 E0 P8 D1 W$ ~/ N
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
$ m* {% L5 @! ?1 ` self._target(*self._args, **self._kwargs)- ~) ]( a7 [0 Q* U! v8 |
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper; {( h5 |+ @0 q7 a% E- ~8 k9 m, l
fn(*args, **kwargs)4 W% \, _! R% @: w7 a
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
8 q5 Y/ X' k# h \; w/ h% [ self.check(display_num_errors=True)
4 g! N+ c# g9 X File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check; n( w8 b; |6 E8 f
raise SystemCheckError(msg)$ C! _1 A' g9 l' C, y
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:) ?" W" S! O# d9 F0 B6 F
& i5 w* ~- F% E- I: C& r0 M* OERRORS:
" ]3 d7 o( v% Eaccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
* L2 _& x$ q$ [
3 l }% V: V. p0 }( d$ l# ?" ISystem check identified 1 issue (0 silenced).
+ D7 r# c* \; n' O Q1 H# EC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
: E" ]! M- x0 [: _6 T/ XPerforming system checks...
( {* J3 B+ E2 p* U; s4 F9 R/ W( d
# Y- ~( L5 x+ I0 `Watching for file changes with StatReloader
3 J7 @0 |1 @! ]1 a5 |" |System check identified no issues (0 silenced).
4 T6 g* |' b+ }5 z
9 V. W+ ]- \+ r9 {* KYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.) Y; w0 s# M+ F9 y
Run 'python manage.py migrate' to apply them.
@$ v; W. @( [April 30, 2025 - 08:20:316 W2 r3 Z, U6 _' {7 Y+ x
Django version 3.0.5, using settings 'testmyproject.settings'
Z1 N2 S' z8 p" Q2 i9 l3 p$ i1 PStarting development server at http://0.0.0.0:5000/
+ ]1 N( @- b6 u6 D0 `Quit the server with CTRL-BREAK./ v6 {8 p- W2 w5 y- F
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
2 g8 B5 s; \) |9 W! G, [9 j/ mPerforming system checks...
& C0 G$ u! V3 F4 ~ j; Z; M: a5 m" S& _7 t- I8 L; `( [' t9 A
Watching for file changes with StatReloader0 l, R$ [- d+ h
System check identified no issues (0 silenced).7 X* v3 ]( c6 {2 @( @
! K Q0 z2 |; e7 P1 R8 |" 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.
+ H) l8 a/ b h% i/ z" y! URun 'python manage.py migrate' to apply them.. }0 H- |8 ^! K3 ]- g2 N5 e+ B1 e
April 30, 2025 - 08:21:21
! H; D! H2 a+ e% IDjango version 3.0.5, using settings 'testmyproject.settings'
8 O" ^/ [$ h( qStarting development server at http://0.0.0.0:5000/
' K3 T/ A; P: b9 m+ OQuit the server with CTRL-BREAK.
( ?' K5 N* t; WC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
5 f' c+ i- h3 U! S, _* a3 k- t/ \Performing system checks.../ b2 F2 p& M1 D5 t
1 ]0 \+ i3 S- e+ a r. R# ]. s+ ?: nWatching for file changes with StatReloader
7 f+ r7 |% |6 OSystem check identified no issues (0 silenced).3 |6 E9 ^7 S0 r. }0 \4 p
# [+ y4 K4 [$ S! v' ?8 G1 CYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
' o- o0 ~0 @% o& F) a/ F4 yRun 'python manage.py migrate' to apply them.5 ~; y8 ?/ T$ q9 _
April 30, 2025 - 08:21:24. \5 J( B: Z3 ]0 ^8 z3 U
Django version 3.0.5, using settings 'testmyproject.settings'
% I: s# I0 p5 }" {$ YStarting development server at http://0.0.0.0:5000/$ a# H5 U/ T$ V; V; F
Quit the server with CTRL-BREAK.
c- \% u8 R% v7 c. \' o1 qC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.! c: p2 A- ^/ n( ~
Watching for file changes with StatReloader
, l, P# G1 ^1 S I+ ^) lPerforming system checks...4 j' T i/ j: A6 u5 I& R
% W+ p: K# l+ k5 J2 |$ x* b
System check identified no issues (0 silenced).; }3 e7 v+ ^/ l& N& u" C
; g0 f, R7 Y* D+ 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.: }& z1 C4 V* C: Z- C* ~8 O3 Q
Run 'python manage.py migrate' to apply them.' |$ X' U: [1 K/ b9 a, s5 a. R) I
April 30, 2025 - 08:21:31
) x0 C9 J/ S4 p6 l. W& j9 nDjango version 3.0.5, using settings 'testmyproject.settings'
4 }' a. g! X% X' qStarting development server at http://0.0.0.0:5000/
: U/ m) A3 u) N5 k: O* T: l4 SQuit the server with CTRL-BREAK.
8 M' T ~' k7 Q5 X |
|