|
|
楼主 |
发表于 2025-5-1 08:00:01
|
显示全部楼层
C:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.' M; S' y8 c6 n. U
Watching for file changes with StatReloader
. T" Q2 `" {% ], W& NPerforming system checks...
" I. {. z$ e2 V2 {; C" x0 p: `6 S8 w- Z, F% k! X
Exception in thread django-main-thread:
: g$ t& T; }+ o8 s. ?* xTraceback (most recent call last):) p# w g: k) C: x8 {2 q0 \
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner9 {) q1 e$ l& X( G+ ~5 _$ E6 @
self.run()$ m% T0 N% E5 d
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
7 @1 U: |! [: ]& g: i7 S0 u" G self._target(*self._args, **self._kwargs) I5 ]7 {1 C) ~# ~4 [
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper, X$ y! C8 J1 b
fn(*args, **kwargs)
) P; a7 L' p8 g7 F) N" o File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
, }! V9 W" Y. {9 X1 c6 c self.check(display_num_errors=True)
" z" e Z4 R& w1 j# q File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 392, in check
. g1 x( L4 D8 r) R9 |! y; K" S& G8 M all_issues = self._run_checks(
7 T7 L4 [2 c7 e' `2 A3 t File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 382, in _run_checks, {3 u- Q; X( l- \" H. m& g
return checks.run_checks(**kwargs)+ @' W3 b) ^; p3 |5 S" E% B
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\registry.py", line 72, in run_checks
: Q1 G" A9 z. g1 I/ ?/ _ new_errors = check(app_configs=app_configs) Y! S2 i( B* q6 p% n1 d6 [
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models5 U/ q9 J6 n$ y1 |
errors.extend(model.check(**kwargs))- c9 a, l& A ?& y7 h2 z1 Z. w0 U
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1275, in check
& [. \- i( t" m* q4 \5 C *cls._check_constraints(),
. O" M; {3 V7 ` File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\models\base.py", line 1841, in _check_constraints$ Y0 f T3 Q( v. G
connection.features.supports_table_check_constraints or y' e- y. [, b" X
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__( }5 w3 Y* K+ o: e
res = instance.__dict__[self.name] = self.func(instance)* I5 H0 ^) x$ \/ _1 F: R; a
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\features.py", line 93, in supports_column_check_constraints
; j7 g3 }7 {" k0 g8 L if self.connection.mysql_is_mariadb:5 }' C' v0 x; T5 d& Y' U; z4 x
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__# k8 ]' h) ^) W4 G7 y; W9 ^
res = instance.__dict__[self.name] = self.func(instance)/ C r' s& k! D9 D R$ ^
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 363, in mysql_is_mariadb
& M2 x Q4 F0 _ e* j2 B9 ? return 'mariadb' in self.mysql_server_info.lower()
* f" [) c0 I" d3 q+ W9 d* p# B8 ~ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\functional.py", line 48, in __get__# n' i- t5 d& A, @3 v1 u
res = instance.__dict__[self.name] = self.func(instance)
# [* V+ A( V3 _- T# \8 ?$ \1 N File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 351, in mysql_server_info; o: _9 z$ [! Y% d7 i& z
cursor.execute('SELECT VERSION()')7 v& `+ W5 d2 \/ y- \. J6 u
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 100, in execute
8 e6 X) Y7 z, m$ C: V+ d; O; O return super().execute(sql, params)
/ o; H4 M& i' Z4 ^9 n! ` File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 68, in execute
5 n2 o* a; }: X& q' Y+ G5 V, P return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)& [* |. Y* p6 D* U1 s+ M
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
5 U& ~) I6 W' Z% |! y/ r8 X return executor(sql, params, many, context)
! h) l* B) N* E% z File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
/ Z6 G! c: m# T' h return self.cursor.execute(sql)6 K1 j+ g! Q% i: I1 o3 I' V" i# T
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\db\backends\mysql\base.py", line 74, in execute
+ {. n+ [% n7 F7 c return self.cursor.execute(query, args)4 T. l, }) r l: H% t+ \
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 210, in execute
0 ~, K, f) r: @ res = self._query(query)
# }: x1 ~0 ]" y' G8 { File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 327, in _query: Z- H# o: |$ M# g
self._post_get_result()
* j4 w( O3 h1 J5 h/ A* u/ P File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 362, in _post_get_result. G: h* _5 V' O
self._rows = self._fetch_row(0)
9 @' B( h! t. g& v0 E, b$ u" X# y. h+ c File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\MySQLdb\cursors.py", line 335, in _fetch_row
' g/ G* Y9 K0 s0 z return self._result.fetch_row(size, self._fetch_type)
+ Y( @6 H; h4 m* B) t; \decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]5 f( C J2 F+ b- m
C:\Users\admin\python3.8.2-vitual\Lib\site-packages\MySQLdb\constants\FLAG.py changed, reloading.
a0 _1 [3 ~6 ~6 T. p% Q5 ]3 DWatching for file changes with StatReloader6 l3 T% e8 Z, n; Q7 p9 M
Performing system checks...% o6 ~* }. W- Q
: E/ D! a: A* T+ q2 Q9 x# JException in thread django-main-thread:1 D4 I( Y' s# f% `1 E- B
Traceback (most recent call last):4 \6 ~: x1 A' v! j
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
6 F+ n" x: a% }' x1 O self.run()% E0 P, D# k/ J. a7 ~- L! c4 O
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run& }6 k# J \7 E7 a. y' w
self._target(*self._args, **self._kwargs)
: [- ~8 P7 f9 \1 c) o File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper6 |" F& B7 w. B& }6 K" z# d
fn(*args, **kwargs)
$ l% i7 E1 ?$ k$ C File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
, }$ q; ]/ w1 w0 x self.check(display_num_errors=True)% s) L8 \0 l0 |( c9 D
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
* ?8 S' ?& N7 k9 H( r$ Z; f raise SystemCheckError(msg)
. w" q x( k3 ^2 udjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
4 Q7 E$ l6 S/ C/ L( N- p& C9 k; |9 |5 d* g% H5 N0 p: a
ERRORS:
; u G- {) j7 P* |2 O3 _accounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.5 m6 d: v1 Y& j! P. u# b
l: F$ \" A3 q4 g; P- I
System check identified 1 issue (0 silenced).
! X; Z( \- C% x6 D' }& o6 g' A* nC:\Users\admin\Desktop\testmyproject\testmyproject\settings.py changed, reloading.
& [4 V8 m) x5 S: tPerforming system checks...
- D6 \' e$ x4 m' i- n6 ]$ w! R. E2 n' A+ y6 q. e
Watching for file changes with StatReloader4 M9 O4 [, g" o+ n$ b
Exception in thread django-main-thread:4 R* r$ A( @% n a4 f( H
Traceback (most recent call last):
- I; @! R- s% t W* I File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner; V! y7 c& |' x8 @5 k1 M& Y( ~
self.run()0 n/ M( Z% ~& T& U3 v1 M8 A* i) }5 l
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
2 ~* q0 P: ~$ h* S6 V3 L! d self._target(*self._args, **self._kwargs)
' h. ?' Q" f% H7 {! Y+ p; G/ a File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper' U7 h* g/ b t. S* T
fn(*args, **kwargs)
9 y3 p, u$ C( Y3 G File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run3 L# }! j# X- A* S) b1 Q. k
self.check(display_num_errors=True)
; [4 h* n- R* V2 R, W* r6 @ File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\management\base.py", line 441, in check
]: y. U. [& q" r0 s raise SystemCheckError(msg)
# S% o2 N0 Q l, [% |+ edjango.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:2 f" G3 U- [ e" d
/ M" X, J+ R! k- R! A/ C$ \
ERRORS:
( g) H9 F& y. W0 p2 C2 d! Eaccounts.User.username: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
; ~* G8 j+ Z6 L Y, q) ^/ m% \8 k7 g2 [. x
System check identified 1 issue (0 silenced).
1 t5 _+ Z1 s9 b3 F1 G) j+ nC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
1 W/ W' A( j8 x$ p' y2 oPerforming system checks..." n, T3 L3 `6 H2 {1 w) r6 A
1 m$ G* S, m9 A& a* M( Y. v. J, ^Watching for file changes with StatReloader
& n' g. n$ \3 c/ n, GSystem check identified no issues (0 silenced).* i& @3 C) D2 T! t
3 E- @: x' E* r% b# ?4 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.2 Q7 u, ]8 S8 P+ ]- ~/ b6 N
Run 'python manage.py migrate' to apply them.+ D: B1 o: t3 Q& g( \! T, V
April 30, 2025 - 08:20:31% a n/ ^; Q8 y% W& K5 a! F
Django version 3.0.5, using settings 'testmyproject.settings'% G7 ~& \) s8 Y( E
Starting development server at http://0.0.0.0:5000/
. n: e. a% l! e# q1 SQuit the server with CTRL-BREAK.
7 Y6 ^2 @ l' G% ]5 CC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
% A: x. b8 }' Z( }$ ^4 t+ M# APerforming system checks...
$ ]: ]# o3 k* _+ h, A" f8 b
5 J5 h' h4 k9 v( YWatching for file changes with StatReloader
) ]1 M; [& ?; B- d' T oSystem check identified no issues (0 silenced).) `% y$ c# u2 z: h" X! A+ l4 f
: F: X6 H7 ?$ }, Q- [5 W; a% qYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
: y H9 o2 Q; |6 H1 XRun 'python manage.py migrate' to apply them.) M8 `' I# s5 n# ?
April 30, 2025 - 08:21:21$ x3 l$ K' r6 L7 O) T- r( y0 c& t9 x
Django version 3.0.5, using settings 'testmyproject.settings'2 w$ W- H# {( ~0 I% N
Starting development server at http://0.0.0.0:5000/
. N/ Z" B" E1 LQuit the server with CTRL-BREAK., F* m/ P# d, K( I% M3 n1 J
C:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.
( d; Q* p& B gPerforming system checks...2 P ?6 B& d! I4 x, ], v
5 o' w8 _. e( d* r, cWatching for file changes with StatReloader% } Z* T/ H9 w* H* N$ L) W. L, d
System check identified no issues (0 silenced).
2 s: L. I* s4 w/ l
4 ?9 [$ Y x# V) W: RYou have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
; N5 X( j' |$ o- `Run 'python manage.py migrate' to apply them.( A' o" o- @: k' F
April 30, 2025 - 08:21:24
" N( \$ o8 \& T3 e- p$ wDjango version 3.0.5, using settings 'testmyproject.settings'
# C7 ^0 i7 R/ y5 g. bStarting development server at http://0.0.0.0:5000/3 d% m- b1 L3 _* v/ {6 f
Quit the server with CTRL-BREAK.
- D: Q: A' z+ `- I! D0 EC:\Users\admin\Desktop\testmyproject\accounts\models.py changed, reloading.+ ?5 M% v5 u, C! B' V1 J& a! k# \
Watching for file changes with StatReloader
0 W& O& Q; A) x uPerforming system checks...
! T; S4 T+ g# R. h
, G% K6 b; v0 T+ c' ~9 V B d2 OSystem check identified no issues (0 silenced).( f, Y( o) R6 w5 u. Z: F& Q
: B8 e/ v% q0 M4 A1 |- b
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.& Z5 Z6 b7 T( E% B1 f/ B5 s
Run 'python manage.py migrate' to apply them.% o G; b! @# E( v; d2 W+ p* x5 d. ^
April 30, 2025 - 08:21:31
$ ?* @' G' _% d% I9 b/ }# w- nDjango version 3.0.5, using settings 'testmyproject.settings'( S4 _' n: @0 s' L$ D) v& k! b4 Z
Starting development server at http://0.0.0.0:5000/! l U$ {/ v r+ D& u
Quit the server with CTRL-BREAK.0 w4 j# X) X8 ^" _; r: M
|
|