|
|
楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.; m$ a2 ~# d! C4 }3 G, \
Watching for file changes with StatReloader
0 B: \* h( `) `4 c/ @9 FPerforming system checks...
; y0 P4 p+ S9 z% h4 N& ` Z9 ~7 w1 ?# i8 m$ C j
Exception in thread django-main-thread:
' h+ j: J% r/ ]/ k( jTraceback (most recent call last):; I/ c7 w, [5 f4 W- Y% r9 a$ S+ s
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
8 `7 g2 |6 l+ l+ A: v& M9 T$ w self.run()
8 D9 q0 a8 z- g1 \ File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
2 c4 {' v& H' ] self._target(*self._args, **self._kwargs)
" X1 q) {0 s5 S6 C8 A File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper9 O5 j9 `( C: N4 v3 N, d# ?1 H
fn(*args, **kwargs)6 O( U, l: r; h5 Q& O6 b
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
+ u6 t9 s4 M. E) U7 |7 X7 |9 A self.check(display_num_errors=True)# j8 H, M5 t) \6 C |0 K
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check1 G1 K3 ]$ k4 F; q1 Q) O
all_issues = self._run_checks(
1 A; s& A9 N- j1 ?9 N; k2 g File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks' ?: I$ e! a7 H
return checks.run_checks(**kwargs)3 |' P O! p$ ?* d( _
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
8 \. K5 F3 f$ ? new_errors = check(app_configs=app_configs)( `, ]4 \3 \/ Q U
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models
7 M [5 |5 o# D! g errors.extend(model.check(**kwargs))
u. q- i' V/ j- \* g4 G File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check
% j1 Z: t$ U- b% L0 s& ` *cls._check_constraints(),$ J/ a; _' e6 k
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints% k; Y/ f8 m) `
connection.features.supports_table_check_constraints or) r6 |& X* ?2 J8 W# E0 i
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__0 ^. Z; O% |3 z; z% {/ V, C2 I
res = instance.__dict__[self.name] = self.func(instance)
0 I4 G$ f$ |6 d$ n# z File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints
5 r/ D* ]/ e- Z0 w& o& g if self.connection.mysql_is_mariadb:1 c& \6 p* x6 U' `# @& L
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__8 [2 [% B2 \' L: X# c
res = instance.__dict__[self.name] = self.func(instance)0 [, ] ?9 M a( b7 H6 Y. ^4 Z
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb
. `: G% D6 d$ w8 n return 'mariadb' in self.mysql_server_info.lower()
' t6 J, C$ m4 E8 Y* x File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
* }0 o2 [2 t7 V e; L/ E% e/ _ res = instance.__dict__[self.name] = self.func(instance)9 ]8 s) x! h1 F+ S, E
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info# w3 v0 x0 |; K5 w; d
cursor.execute('SELECT VERSION()')8 A/ a8 B& @( O: K" ~
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute
W q0 S5 D% N# m/ V0 y9 y return super().execute(sql, params)
0 w) C" M# M/ ^! J5 A7 G# Q2 q, e File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute
7 ]. C) B0 @3 h1 D Y2 G, d @4 G- g return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
3 ^6 ~$ d; ]5 w5 R+ I- l; H1 ` File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers* ^; V. [/ X+ Y' J0 X6 w
return executor(sql, params, many, context)
7 f3 o+ \* j, D' |; I5 D File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute0 k' W9 N, s% i* N( \
return self.cursor.execute(sql)
G( T# v0 @1 x$ k; Z( ] File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute' N& T0 I$ E0 f1 j& l+ f/ U+ p
return self.cursor.execute(query, args)( J6 Y1 a2 Z& C/ `5 s
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute# t2 Y6 s; h) P2 r4 |; P! e
res = self._query(query)
. N4 _# j5 ]) C" i3 j File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query0 b( B! o) ^& b& @! `- M8 }4 F( i
self._post_get_result()7 g' a# S: q# n; a/ {/ B: D
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result: K5 d, ^' s3 I' i. ]9 q2 D' b
self._rows = self._fetch_row(0)
; w( a" Y( C" D* ^( ]. K File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row# f. g1 J/ l& T3 y
return self._result.fetch_row(size, self._fetch_type). Q4 l; j! c( j' e
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]5 l6 o& T& g1 n% e) }
C:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.
/ \6 M4 Y Q6 x! l* P+ b8 |Watching for file changes with StatReloader0 c/ V& i4 j$ r$ k4 a6 @6 R, o
Performing system checks...# y: Z* z2 d5 \; R: z% M
$ i4 o) c* ?+ P- e
Exception in thread django-main-thread:. |) \/ _, D" M7 a, D, t
Traceback (most recent call last):+ n/ j8 e0 X. S7 m. m# v/ z- R9 P
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner X& c4 c! [8 A) L
self.run()
7 G1 w: W) u* F- D3 [/ g' `; E6 E# c; ~ File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run/ k9 f# ^% f Q4 X
self._target(*self._args, **self._kwargs)
5 d5 e% o. i: X/ Y- c0 K! u( S1 ` File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper7 W- t1 z2 Q9 z& T2 _/ T0 I% j
fn(*args, **kwargs)
+ O8 ~ t2 U2 d, ?3 c& w File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
1 v9 [: {6 U( U* N4 O- o+ q self.check(display_num_errors=True)
$ P! X% Q. k! a' s8 N- g File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check- M6 h' y- R2 ?' c6 i/ _+ w& o
raise SystemCheckError(msg)
0 i5 P, r1 ^, ^0 ^* |2 }6 Bdjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:4 O+ q3 Z. J1 A/ Z! k
" d) } w1 ?- l
ERRORS:& e ? I/ H1 d7 ~7 E
accounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
/ j; H, H) G* b) e$ h$ X0 R3 Q2 k% K v4 O+ M. e7 H
System check identified 1 issue (0 silenced).
9 @' y6 o7 A- A1 kC:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.- p2 k- r! n! i
Performing system checks...
" ]7 `" Z& Q' w* i" m/ o
& U" Q6 q- y3 j6 a% R6 _8 _; kWatching for file changes with StatReloader# {8 i( g/ W& C- A2 g t! l
Exception in thread django-main-thread:& O: z9 Q0 D* t& U: M7 c
Traceback (most recent call last):9 Q+ I, s: t7 h6 d. [
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
6 g' D. G& A/ p+ H self.run()
: K9 V6 p/ V. w File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
8 N& V2 h. r+ y# l% X+ t self._target(*self._args, **self._kwargs)
1 F2 I0 k, @) e- }) @ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
% {# R$ O1 C7 w& {+ S fn(*args, **kwargs)2 t4 L$ q3 Q; T, C# S6 g
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run- ^7 a* m2 m1 ?$ z$ b9 R; h c
self.check(display_num_errors=True)
`& J" ]9 o3 I File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
* y2 Z2 |, I2 M3 l2 J7 y0 n raise SystemCheckError(msg)
% ^4 F% e+ `. c `, Gdjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
/ E5 o/ P+ l( N) r$ y$ }' g; U1 W. u, ]
ERRORS:& i& c# y2 I" l& `
accounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.2 b# O$ x$ _6 k6 M4 Z
* C& u: `6 `6 u) b9 h; X
System check identified 1 issue (0 silenced).
3 H, w5 F$ A2 M$ W# q9 nC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.2 a2 ^% l) }6 W8 o1 {2 w$ E8 h
Performing system checks...9 B" L6 J6 f2 u J. l9 C d/ p
8 O/ n% l4 k L; r: MWatching for file changes with StatReloader
4 e; @+ S& d( l7 ]5 Q! [- mSystem check identified no issues (0 silenced).
. q, S3 c+ y7 C& i
: F G* `9 U, ~7 c, O9 ]* d: _You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
6 k% F. [, M% YRun 'python manage.py migrate' to apply them.5 p' e% @* p: b& B, T- R6 V
April 30, 2025 - 08:20:31
9 ]! {$ A& g$ U2 h7 s$ G" TDjango version 3.0.5, using settings 'testmyproject.settings'6 @/ B5 t a6 u# h
Starting development server at http://0.0.0.0:5000/; s1 }+ o" l) f" ^; Y5 u
Quit the server with CTRL-BREAK.
/ C5 S. o; L3 i9 o0 {8 LC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
; n8 r. G9 U. |8 |Performing system checks...; h# G* A1 c( N& J! c
3 J% D1 Q, u( T8 oWatching for file changes with StatReloader
2 d, o5 M# M4 f$ P/ ~System check identified no issues (0 silenced).. P5 Z1 k% f4 v& r) a5 B3 ~9 y
6 L9 k f- T% |! q, Z3 u! c. `! G
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 U9 s: w7 w6 d* n0 ^( X
Run 'python manage.py migrate' to apply them.
4 k2 `* T$ g! dApril 30, 2025 - 08:21:21
1 r1 x, @6 \% L; R( d4 JDjango version 3.0.5, using settings 'testmyproject.settings'
1 B% { N6 d" c0 c" eStarting development server at http://0.0.0.0:5000/
- _" c# @5 {' }) b, z \" k, QQuit the server with CTRL-BREAK.4 A. E6 }8 R: S& H3 O
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
0 E" i$ @) ]4 D' WPerforming system checks...9 G% P( \! e) @4 q* T( v a6 M
7 V! Y, s, N& _" \% `) n
Watching for file changes with StatReloader* C) a" V- r' f2 D) t6 W
System check identified no issues (0 silenced).
0 v j$ |( F* S0 \+ L. O
! m6 a3 j: \8 iYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.+ I2 ^3 k( |4 k2 P8 V$ v
Run 'python manage.py migrate' to apply them.
* {3 O2 F, Q+ K' W7 X; O* VApril 30, 2025 - 08:21:24; L9 J3 R. }, o2 Q
Django version 3.0.5, using settings 'testmyproject.settings'/ O! d8 r( e6 P }5 I- x
Starting development server at http://0.0.0.0:5000/6 @5 x5 B1 R. m i9 Z
Quit the server with CTRL-BREAK.
3 p9 Y% t9 ^) q8 z) h& dC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
' d% M( W0 A) f; h9 F! xWatching for file changes with StatReloader
5 H$ i" M" S5 }Performing system checks.... A5 K5 [% t, o5 x
- j0 Z6 q, Y# a: USystem check identified no issues (0 silenced).
, S) I' K$ r0 w, v
! V7 B# Z& x9 h2 ?& Q0 _You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
! O! x; u) ?* [ f, x/ [' qRun 'python manage.py migrate' to apply them.
: o Q& Z* V8 X) z5 m; bApril 30, 2025 - 08:21:31/ m# {0 P$ h' U' V; O4 A
Django version 3.0.5, using settings 'testmyproject.settings'' a* _0 v% i: T9 m: G# c }
Starting development server at http://0.0.0.0:5000/' d; N. `1 V# j! d. G
Quit the server with CTRL-BREAK.$ g2 f1 v+ ]0 u, u5 c4 |9 x. S+ J
|
|