Traceback (most recent call last):
File "D:\Python3\py3\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "D:\Python3\py3\lib\site-packages\django\core\handlers\base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Python3\py3\lib\site-packages\django\views\generic\base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Python3\py3\lib\site-packages\django\views\generic\base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "E:\Python進階\天天生鮮\user\views.py", line 122, in get
user.save()
File "D:\Python3\py3\lib\site-packages\django\contrib\auth\base_user.py", line 67, in save
super().save(*args, **kwargs)
File "D:\Python3\py3\lib\site-packages\django\db\models\base.py", line 754, in save
force_update=force_update, update_fields=update_fields)
File "D:\Python3\py3\lib\site-packages\django\db\models\base.py", line 792, in save_base
force_update, using, update_fields,
File "D:\Python3\py3\lib\site-packages\django\db\models\base.py", line 873, in _save_table
forced_update)
File "D:\Python3\py3\lib\site-packages\django\db\models\base.py", line 926, in _do_update
return filtered._update(values) > 0
File "D:\Python3\py3\lib\site-packages\django\db\models\query.py", line 803, in _update
return query.get_compiler(self.db).execute_sql(CURSOR)
File "D:\Python3\py3\lib\site-packages\django\db\models\sql\compiler.py", line 1522, in execute_sql
cursor = super().execute_sql(result_type)
File "D:\Python3\py3\lib\site-packages\django\db\models\sql\compiler.py", line 1143, in execute_sql
sql, params = self.as_sql()
File "D:\Python3\py3\lib\site-packages\django\db\models\sql\compiler.py", line 1488, in as_sql
val = field.get_db_prep_save(val, connection=self.connection)
File "D:\Python3\py3\lib\site-packages\django\db\models\fields\__init__.py", line 823, in get_db_prep_save
return self.get_db_prep_value(value, connection=connection, prepared=False)
File "D:\Python3\py3\lib\site-packages\django\db\models\fields\__init__.py", line 818, in get_db_prep_value
value = self.get_prep_value(value)
File "D:\Python3\py3\lib\site-packages\django\db\models\fields\__init__.py", line 967, in get_prep_value
return self.to_python(value)
File "D:\Python3\py3\lib\site-packages\django\db\models\fields\__init__.py", line 960, in to_python
params={'value': value},
django.core.exceptions.ValidationError: ['“0000-00-00 00:00:00.000000”的值應該為True或False']
[15/Nov/2020 19:45:26] "GET /user/active/eyJhbGciOiJIUzUxMiIsImlhdCI6MTYwNTQ0MDY3MSwiZXhwIjoxNjA1NDQ0MjcxfQ.eyJjb25maXJtIjoyM30.xO9VdIQfBTs-3ZgLjgpYMSmfunqhjH6b0qrvLirG-VSq75wBxm_MSE-hF0gQoADCqShiqEItgoIMDR4zHrwXRw HTTP/1.1" 500 141253
郵件可以正常發送,但是發送了郵件的鏈接只要訪問就會報上面的錯誤,django的版本是3.11
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/218778.html
