|
|
楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
$ Z# U+ ]/ j% N& ]1 U% BWatching for file changes with StatReloader
: [# z7 E- [+ I+ ?; Q( C1 H, n/ jPerforming system checks...# E+ j& F" k& J
1 r( x1 n$ ]" |3 ?( X
Exception in thread django-main-thread:3 f$ }3 l% g- S. B4 l
Traceback (most recent call last):) {4 H: y* y, p$ a% c
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
* k: L* |3 M1 W9 |. ^' f% R6 c! A self.run()5 A# Q4 g0 g# Y3 b: c
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
0 \1 i/ T6 ~; _' r self._target(*self._args, **self._kwargs)& c/ c1 R. j* t* f2 v+ _+ q" P1 B7 s
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper5 r" b) @' h2 p1 c- T* _/ R
fn(*args, **kwargs)% _8 D6 w: d2 Y5 f: x. B
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
& K/ [" i6 h- {/ C self.check(display_num_errors=True)
1 J6 H, `9 s& N; l File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check* h) w: e& b5 F
all_issues = self._run_checks(
! ~3 g; l1 U" e6 U! p7 W File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
8 \, c2 J+ o7 M3 S# h3 D return checks.run_checks(**kwargs)
& J* j3 e& L* m- b+ R7 ^ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
- @/ N" m% c: V( h7 }" ^% F new_errors = check(app_configs=app_configs)
: A! k+ W1 S8 l2 r File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models$ s. ^+ ^( N/ M
errors.extend(model.check(**kwargs))
- j; ?2 u9 p, B$ } Z: y: n File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check
" L4 R% F# H# y *cls._check_constraints(),
0 N6 @- l+ j: v$ A, f& t2 K File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints
R9 `* u% l! e1 e5 r connection.features.supports_table_check_constraints or
/ {0 h9 `7 f$ B$ { File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
- B/ J3 q% L1 H- `5 T/ S res = instance.__dict__[self.name] = self.func(instance)
' y" q3 T* z+ l- U/ y0 o File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints0 C# ]# \0 Z O+ C
if self.connection.mysql_is_mariadb:
1 H" Q) G' \. u# n) G6 _ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
. a0 D- S# f, C; l res = instance.__dict__[self.name] = self.func(instance)& P0 @3 @- ~: s' t
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb
4 n) E, I! e+ P return 'mariadb' in self.mysql_server_info.lower()9 T9 L9 v, w9 o
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__2 z% I0 [9 M# M, y
res = instance.__dict__[self.name] = self.func(instance)+ R# V, Z" r# T4 O
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info
* ~* u3 ?) x3 S: t& |: S cursor.execute('SELECT VERSION()')6 X) j/ p" e3 j% `
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute1 E5 j& i8 F' x7 E/ t
return super().execute(sql, params)! j6 p% p5 Q3 j1 F# r
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute
4 N0 b3 L4 q& D, \. X return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
; X6 @6 B3 c9 Z# g7 I! N File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
% A I& k# {' ]" {( @+ Y return executor(sql, params, many, context)4 R- u+ T" \* n( V
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
: t9 V2 q+ Q9 k! o/ |9 D return self.cursor.execute(sql)2 r3 l7 M% M- i: X
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute- e8 l6 f3 i5 {- O6 O/ b
return self.cursor.execute(query, args)6 h- }& t: c [: w
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute
. C, q/ n% K; ]5 D! \ res = self._query(query)
7 Y1 p0 s7 @7 q- o" }! o3 l' E File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query
% B9 s0 U/ G2 r5 u0 Z self._post_get_result(), E6 V) J# ^! G, ~ ]: b
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result
/ J; {5 G) E0 ~- x; u self._rows = self._fetch_row(0)+ V& q) [2 N2 Q* c: A9 l& n
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row2 o# ^9 U4 q' K" O; h7 r
return self._result.fetch_row(size, self._fetch_type)
8 n" a- o9 o: z. Gdecimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
1 K2 D% i6 Z: B) J4 EC:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.
$ G) \* y* T) s9 OWatching for file changes with StatReloader
' o% t. B' X' BPerforming system checks...% |! A' v6 U' m' r& d) k d
" N4 ^4 F5 }. h( v3 A4 CException in thread django-main-thread:% Q, A/ S4 @% s
Traceback (most recent call last):( V1 H9 u, x7 l: A. h% `* A7 g$ D
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
- d6 u* O! Y9 o0 h self.run()
( W4 u9 W+ Q0 _* J2 Q, g File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
7 e$ o) A! k% L) |6 @/ b! q self._target(*self._args, **self._kwargs)
( ]: ] N$ i: B2 [. v8 S( ` File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper/ ]. o3 r. o% T
fn(*args, **kwargs)
- W9 C. Z- k* U/ g( h# Z: C File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run2 B0 ]4 w# ?* o
self.check(display_num_errors=True)9 x9 k l w+ n0 O2 O8 ?- @4 ~
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
' `/ h) S" G1 R9 f$ Y- [. Y raise SystemCheckError(msg)- j6 b) H* j1 f7 e i
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
2 Z' U) Z& O6 g* I7 D8 p# }7 B8 p/ ] l8 b6 A" e- w7 ~
ERRORS:+ S. S- Y; Y$ R2 U2 v7 U% w$ G
accounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255./ o6 C1 `+ j5 P# c5 h. l! O
- } f, [' {: c9 z& ]7 u9 `2 zSystem check identified 1 issue (0 silenced).+ w2 J3 `; {# h5 q
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
7 S/ C1 \" k' N" X o' SPerforming system checks...- K! R- P/ x' k' u0 _* ?
# T, @1 d& I+ s/ V6 [0 P0 R! N) cWatching for file changes with StatReloader
3 l8 u5 g3 F, f, S4 dException in thread django-main-thread:0 G: P8 z$ ~/ P0 y0 p8 S
Traceback (most recent call last):4 W. c5 G/ l5 m7 ?# O0 Z, {
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
. _6 o! e& w3 R. k, u( G self.run()( i X& a, g- P& d, z" A% _
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
6 O2 r+ F0 ~3 R6 }( b self._target(*self._args, **self._kwargs)- X( b* m W8 i9 s
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper+ w! h. S8 [) H4 {- a
fn(*args, **kwargs)
: ]! |( ^: u5 V" E% j1 z; Q File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run- }# G& t% I" n9 ?3 ?% T
self.check(display_num_errors=True)& d2 C j" c c. ?% L: W) R6 x
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check2 r1 e: U0 N! _# V3 t# N9 O) i! Q
raise SystemCheckError(msg)
4 j9 x2 Q3 ~$ J2 R( Udjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
) q6 d% ~4 p9 D+ m& H- @6 v) e: X8 r7 |. }0 K
ERRORS:
8 I! ?+ L0 ^6 e5 M# ?! faccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.' O c; R' G# G
, A% {8 ~5 r0 d: [" y9 u
System check identified 1 issue (0 silenced).! s7 |3 }+ s1 @& C
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading./ z0 ?6 _2 `2 }2 D' t; D
Performing system checks...
- R/ ^. I7 p4 v0 q/ ^: t9 V, H& S) {0 d5 B& ~( r
Watching for file changes with StatReloader
9 r% R0 A q/ X* [) }5 ~' m# ESystem check identified no issues (0 silenced).
4 ~# y0 c" @& b9 H# u0 Q$ o: R% x. u7 k4 h4 S6 n" l
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions., f- s& n/ |% s, s
Run 'python manage.py migrate' to apply them.% V* @. l* t/ K. R% z
April 30, 2025 - 08:20:31/ `* Y6 K1 d7 d2 L) u+ G
Django version 3.0.5, using settings 'testmyproject.settings'
2 F3 h A6 C) x3 I4 l$ E4 sStarting development server at http://0.0.0.0:5000/
$ {. O: P$ m0 K/ WQuit the server with CTRL-BREAK.
8 w1 ~" q" ]" ~ v7 h* G. i. EC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.1 K/ m! O1 m2 {. v# k
Performing system checks..., U: Y# ]* k0 ~1 b
& W: L& ^5 M7 k. G& h G
Watching for file changes with StatReloader/ L& [7 s, `) T
System check identified no issues (0 silenced).1 q/ p0 P! S% M" Y6 {
. F# t: t# q/ z6 A% s& bYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
, z4 b" r3 N* }* B8 n5 ~Run 'python manage.py migrate' to apply them.
. r m: I. i+ |+ v: H6 s2 NApril 30, 2025 - 08:21:21
1 W* k- V, L) M+ D9 wDjango version 3.0.5, using settings 'testmyproject.settings'
V t" x3 k9 t* c) \5 M% p9 GStarting development server at http://0.0.0.0:5000/
, M4 H6 {) g0 N. cQuit the server with CTRL-BREAK.2 |3 n+ v6 t, O7 X, N, g4 J; B
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.( t* ?) S1 T- [6 e" g) b: c
Performing system checks...& l3 K+ P* _" H5 e" f
2 ^" H4 i( e0 K; b5 v" S) e4 }Watching for file changes with StatReloader1 p. T0 N( Q( |" a
System check identified no issues (0 silenced).1 e8 M# v X' ^" E0 {+ }) F
+ {( b) a) y! F- f4 H8 e" v9 H, U' 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.# W7 |( R7 l; I! X: y/ G
Run 'python manage.py migrate' to apply them.( X3 D/ k* z% R
April 30, 2025 - 08:21:24
1 h8 F/ b4 d0 R L! `% {6 v6 BDjango version 3.0.5, using settings 'testmyproject.settings'
1 U6 g Y% C1 k9 [. B5 Q/ ?2 e- J: yStarting development server at http://0.0.0.0:5000/
( n/ e E! i" \; A; J2 D( JQuit the server with CTRL-BREAK.
$ s2 D7 J4 _: L; O# NC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
0 y) ]9 J) ^! u: Q9 cWatching for file changes with StatReloader' O- X/ _! I. x4 R% D
Performing system checks...4 s) h U3 {; A7 X6 D
) ~% o f) n) y: n. gSystem check identified no issues (0 silenced).7 d. R Z9 G' ~" l5 h
# }" A- p6 d* x8 i( j3 R, `; {% N9 H
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.* c9 A! b% N* p. P
Run 'python manage.py migrate' to apply them.
. [# r! c# a0 X8 v, qApril 30, 2025 - 08:21:31
$ E' q# f2 u( F4 p+ ?+ oDjango version 3.0.5, using settings 'testmyproject.settings'
0 x7 I- e- [: v% h" F5 w+ eStarting development server at http://0.0.0.0:5000/, H$ u: m6 I5 o6 C8 a
Quit the server with CTRL-BREAK.
7 D- S3 _9 L' f# m9 l |
|