|
|
AttributeError: type object 'datetime' has no attribute 'datetime'
: O" s, h/ o; ~: ~6 o) w0 v7 y# g8 x3 j2 u
( U4 {5 g, \, g4 E- O5 o [7 S: w1 M
AttributeError: type object 'datetime' has no attribute 'datetime') f# a! m' s% a5 C
[28/Apr/2025 21:12:45] "GET /hello/test/filter/ HTTP/1.1" 500 69413: F+ ?8 k: O# r0 i% a8 p2 K
Internal Server Error: /hello/test/filter/
' [" H; }$ w. L, s* JTraceback (most recent call last):
8 [7 O" {* e0 x File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\handlers\exception.py", line 34, in inner4 ]. l7 x2 L, l5 X$ ?
response = get_response(request) d j6 c! I- G; j* {
File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response1 e9 A7 n" ]7 F' n7 W5 i0 Q
response = self.process_exception_by_middleware(e, request)
3 d; m* _/ X3 F6 A File "C:\Users\admin\python3.8.2-vitual\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
& o5 {$ T/ {2 I! y# ^ response = wrapped_callback(request, *callback_args, **callback_kwargs)$ l' C! ?- t; @% b& D" c
File "C:\Users\admin\Desktop\testmyproject\hello\views.py", line 160, in test_filter
, ]# ^8 [9 ]( d: c- Q1 q my_date = datetime.datetime(2050, 9, 28)
- U* e6 D0 t! K9 FAttributeError: type object 'datetime' has no attribute 'datetime'% I. D) t4 Z' d: j1 s) M, b. j W
+ v4 w+ T( a6 I& h" w
; p9 ]0 y: b+ o: ?9 p
/ e; u r5 P3 D% k6 R# @ |
|