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

楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.1 B: ?/ k) d E, B+ D# |
Watching for file changes with StatReloader8 O+ l! }% L7 e
Performing system checks...& o: C- B1 n/ q, Y
& H' Z2 k2 Y8 Y: X* c. F$ l& nException in thread django-main-thread:
0 A* X/ x7 k) ]9 ]: n& [# KTraceback (most recent call last):
% A3 f- s, Z5 D: _. i File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner/ j2 J+ W- b. q
self.run()6 H- N6 X) s2 P( `5 k+ P) |
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run! q2 R0 U( v: N. D
self._target(*self._args, **self._kwargs)
+ i# z5 [9 Q) b% j) Y: G File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper5 ?, Q( n# u* S) E
fn(*args, **kwargs) j2 n& v9 r; V5 ` a
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
4 b! H, f" {. Z5 X self.check(display_num_errors=True)/ }- @# J$ T/ L, a p4 @
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check% R4 u0 q8 K" w9 @$ j
all_issues = self._run_checks(
2 k4 @9 L9 L4 |/ b1 o, A File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks
6 q+ G; T1 F+ F6 }! A1 G return checks.run_checks(**kwargs)
$ u% V8 c3 H# Y" H File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
. n y ~. l' s E, b new_errors = check(app_configs=app_configs)2 r$ @5 b3 l8 I
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models
/ R% x& H( r+ j7 S. e: o9 [ errors.extend(model.check(**kwargs))
! k0 ? ~# \+ s/ r0 L6 o File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check8 ~, y: @8 l1 I ^5 \/ f1 s+ W
*cls._check_constraints(),
, v+ `1 C3 h: w File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints
) T# t# t% t7 @5 N: i connection.features.supports_table_check_constraints or; E$ A) B. [5 a. r5 F4 G+ ?
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
& S# a. l } G1 z4 ~% t# T6 ^ res = instance.__dict__[self.name] = self.func(instance)
- w: P$ S% z+ a0 ]2 z File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints8 p0 t, Q# g% E7 S5 L4 j; F, F4 G
if self.connection.mysql_is_mariadb:
M* C$ M9 |, x7 l, ?7 B File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__# }. ~" E8 L" @1 O4 i. }, y6 A9 o
res = instance.__dict__[self.name] = self.func(instance)
* ~' w& x! r2 H3 Q: ? File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb
) I: Q, |6 h9 m- s B8 y/ Q return 'mariadb' in self.mysql_server_info.lower()
- ^) Z0 q! T; i6 s1 Z0 N6 z( P( x File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__
/ p8 _" B7 G- [( i9 S res = instance.__dict__[self.name] = self.func(instance)
) `; |' p* ?- s% i r6 U File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info. l h) k4 \1 Z
cursor.execute('SELECT VERSION()')4 {5 {, B3 E5 z! E
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute" [8 d8 \6 O4 O0 A3 @
return super().execute(sql, params); L8 E6 m* k' V% j. W' ^+ y, z
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute0 \* a) \/ s5 s( E0 r" c
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
' e5 H+ i( i8 A! e6 N File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
' e7 x" t3 b% f; L1 o4 m) V3 k$ w return executor(sql, params, many, context)- R: M. ?3 n, s' Q! a3 f
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute! A* l" e( D' e% u* Y! I
return self.cursor.execute(sql)
1 i8 O, Y/ G% B6 X8 q! a File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute
, J+ J7 s8 H+ _$ N) M, l4 M return self.cursor.execute(query, args)
" _ I$ E8 ]. }/ ?7 N! G File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute
# `7 l# {; ]9 e& p" u/ H res = self._query(query)6 q& b& b. r( o& M
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query
9 N# K6 B4 _4 z- x4 l: Z self._post_get_result()
5 s9 b9 h- Z3 ^; C; z* e File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result% Q+ C7 `4 O5 T4 K1 j
self._rows = self._fetch_row(0)2 z0 a1 _ ]& u' V1 z8 s' N9 s* U
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row
/ ~8 W# h, B/ D) W& j return self._result.fetch_row(size, self._fetch_type)$ t" V0 u5 [7 R, ?0 `" c: \
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
: e, U1 [% D& r; O0 E vC:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.
0 Q; X7 O* `; p' A6 _2 wWatching for file changes with StatReloader$ J, p! E$ G6 n6 ?/ E
Performing system checks...
+ c2 h/ K# l* D8 E' r0 O- Q$ Q) W
/ G+ l- O7 T8 G. I2 I( @3 v8 XException in thread django-main-thread:
6 v( t# G+ G* VTraceback (most recent call last):
; d& m3 o# o9 @$ |+ x: @" O) S: D File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner; k% S! \. X, m
self.run()
& G q4 e/ |- K, X4 L3 E6 @ File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
* r! a; \: E5 j E2 H self._target(*self._args, **self._kwargs)
; r$ |& @' N2 w& x" T) U& g+ C# h File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
+ n2 I( p$ L5 e' W5 p# m fn(*args, **kwargs)
8 Z9 X( e, ~ c2 b8 F" o3 P File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run8 M* C( U; f: h7 `
self.check(display_num_errors=True)
) |" G6 ]8 }% T8 a File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check. r6 j t5 `) X4 Z
raise SystemCheckError(msg)! [" |9 M( d0 \7 E$ Q
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
# j& V' W" ^* }) `+ V, }; K4 N( [
ERRORS:
u: J5 o8 t* maccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
9 O# {6 ^$ C" e2 T% Y
! L) _2 O2 k0 @1 SSystem check identified 1 issue (0 silenced).
/ t7 B% v. X4 b+ X- ]- aC:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
& H- d2 f+ J% n; k3 J& Q( RPerforming system checks...
# ^4 L, r2 h: F. t1 j! p: R. e5 Z, y* L
Watching for file changes with StatReloader3 x0 B N9 y2 T
Exception in thread django-main-thread:
% l0 V* y8 y' \) P' XTraceback (most recent call last):
; ` b; G( S/ z0 J, ^3 t. e* Q File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner6 E! K) t8 M! K0 y2 W
self.run()
* b+ Z1 z# R$ D' K1 \ File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
6 l v' m7 I# e0 n% O self._target(*self._args, **self._kwargs)
5 K+ \8 U* Q1 w/ F% _ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
[" @) P9 }+ B9 H% ?4 O0 d0 ~ fn(*args, **kwargs)& P$ g9 K' T! P# r9 o, h
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run! l. r- s+ D8 n+ j5 k& L
self.check(display_num_errors=True)
; t$ P" P6 l. G0 ~4 V File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check$ F* {; c6 l1 G+ P0 i
raise SystemCheckError(msg)
/ J; q% W6 J* c0 {! h7 G9 `: edjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
7 Z; |' F. Q: W. g
+ {# n$ d* G; E; ~: s3 vERRORS:
# a$ [/ W! O; ~, u0 paccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.) [2 @1 ]% q, K4 z4 e' k4 v
) a1 F) ^" G% k+ [ u8 J3 f- B) Z1 {System check identified 1 issue (0 silenced).
4 y# M; y; R" J% IC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
5 F- t- z" @: D# v) J, |Performing system checks...
A6 e, c" @2 Q* Q. C, |- x6 r
5 f) y j+ o. q, G& j6 Q9 [2 vWatching for file changes with StatReloader' \2 W- v4 K. C
System check identified no issues (0 silenced).1 H" Y3 l N# z
, E/ N# M$ J( Q* Z6 v1 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.6 W) D( [* t; |8 ^* ]2 C
Run 'python manage.py migrate' to apply them.
# s5 N: L- t; x! g) p vApril 30, 2025 - 08:20:31
5 _. M) ?3 t; O5 ?: SDjango version 3.0.5, using settings 'testmyproject.settings'
. U3 C& N) c8 Y. T a6 F" Y8 {" `% _Starting development server at http://0.0.0.0:5000/1 W& L6 [0 [# h( r8 y) a1 g, X6 ^, W
Quit the server with CTRL-BREAK.
% X" J. }% R" P) m/ jC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
* Z$ {5 u: J& U, K& N$ HPerforming system checks...0 B; z2 V* t4 r, R% L- v$ y7 }
: ^( L* ]1 W }6 R8 s
Watching for file changes with StatReloader
% d+ K+ h. e2 ?6 c, y) n* e& hSystem check identified no issues (0 silenced).$ ~$ Q) h8 N- m
( `5 e6 |- m: R5 J1 [1 ]+ KYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
3 w$ Q9 Q7 n- Y! B ~, C- D1 e# IRun 'python manage.py migrate' to apply them.2 \4 D0 \8 Z* M8 R: w
April 30, 2025 - 08:21:21) \- s$ ]9 O( I! y
Django version 3.0.5, using settings 'testmyproject.settings'( l' \- W5 |" C8 t, i
Starting development server at http://0.0.0.0:5000/: T" _! ]0 A, ^* R) r3 a/ [6 o& L3 V
Quit the server with CTRL-BREAK.
+ g# K2 i, I8 F# F" r; XC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.$ ^7 w; w3 e# q4 Y F% n
Performing system checks...
X( Y! M! @2 u: h+ @2 f
' G2 j3 s; H4 Q- \Watching for file changes with StatReloader
6 O% L, w2 m; P# j' D+ s- U* gSystem check identified no issues (0 silenced).; ~2 A Z$ R6 F$ _" ]$ K
$ O; I# c* Q" I# S- W, T; u
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
! _) G/ F/ l7 ^' f& W% Z) z, ZRun 'python manage.py migrate' to apply them.
( X+ e, ~% r1 A5 |3 u5 l6 W2 c& kApril 30, 2025 - 08:21:24* x7 [2 e! O! \3 K6 U3 I( h
Django version 3.0.5, using settings 'testmyproject.settings'
7 N0 z8 G' |4 e9 DStarting development server at http://0.0.0.0:5000/
0 K$ K# @4 e$ k+ I; ^4 DQuit the server with CTRL-BREAK.
" b+ H8 y1 u0 d, lC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
1 L3 `! I1 |9 V' D2 D! yWatching for file changes with StatReloader
8 c$ V+ q8 v8 s1 s) zPerforming system checks...
2 b; |; z0 d8 l2 Q
# c) h1 c3 ^; a- V" ~System check identified no issues (0 silenced).' z1 a% h! d' L) o0 a
; R9 Z- C v" l( L! W+ R& uYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
- H7 c# n5 m. hRun 'python manage.py migrate' to apply them.- f$ V" X# w& I7 |
April 30, 2025 - 08:21:31
_# x: v; X1 t9 ^2 }- R* t: TDjango version 3.0.5, using settings 'testmyproject.settings'
* [$ r: [0 x8 p' _Starting development server at http://0.0.0.0:5000/
0 u1 J& X" E8 E& IQuit the server with CTRL-BREAK.
! q: \: N: N0 s |
|