感谢你的恢复,,解决上面问题后,,有出现新的问题,数据库无法链接,但账号密码都正确,数据库权限也设置了
- 2022-11-07 12:06:23 base.py [line:885] INFO: Added job "box_office_job" to job store "default"
- 2022-11-07 12:06:23 base.py [line:171] INFO: Scheduler started
- 2022-11-07 12:06:23 base.py [line:171] INFO: Scheduler started
- 2022-11-07 12:06:23 base.py [line:944] DEBUG: Looking for jobs to run
- 2022-11-07 12:06:23 base.py [line:944] DEBUG: Looking for jobs to run
- 2022-11-07 12:06:23 base.py [line:1023] DEBUG: Next wakeup is due at 2022-11-07 15:48:30+08:00 (in 13326.921118 seconds)
- 2022-11-07 12:06:23 base.py [line:1023] DEBUG: Next wakeup is due at 2022-11-07 15:48:30+08:00 (in 13326.921118 seconds)
- 2022-11-07 12:06:23 log.py [line:224] ERROR: Internal Server Error: /
- Traceback (most recent call last):
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
- res = self._query(query)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
- db.query(q)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
- _mysql.connection.query(self, query)
- MySQLdb._exceptions.ProgrammingError: (1146, "Table 'mywebdata.information_article_Tags' doesn't exist")
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/www/wwwroot/LMathsWeb/./sitesubject/views.py", line 166, in index
- b = Article.objects.filter(id__exact=A.title).prefetch_related('Tags').only('ContentTitle', 'Author',
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 317, in __getitem__
- qs._fetch_all()
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1326, in _fetch_all
- self._prefetch_related_objects()
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 813, in _prefetch_related_objects
- prefetch_related_objects(self._result_cache, *self._prefetch_related_lookups)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1730, in prefetch_related_objects
- obj_list, additional_lookups = prefetch_one_level(
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1872, in prefetch_one_level
- all_related_objects = list(rel_qs)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 262, in __len__
- self._fetch_all()
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1324, in _fetch_all
- self._result_cache = list(self._iterable_class(self))
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 51, in __iter__
- results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
- cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
- return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
- return executor(sql, params, many, context)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
- raise dj_exc_value.with_traceback(traceback) from exc_value
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
- res = self._query(query)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
- db.query(q)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
- _mysql.connection.query(self, query)
- django.db.utils.ProgrammingError: (1146, "Table 'mywebdata.information_article_Tags' doesn't exist")
- 2022-11-07 12:06:23 log.py [line:224] ERROR: Internal Server Error: /
- Traceback (most recent call last):
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
- res = self._query(query)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
- db.query(q)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
- _mysql.connection.query(self, query)
- MySQLdb._exceptions.ProgrammingError: (1146, "Table 'mywebdata.information_article_Tags' doesn't exist")
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/www/wwwroot/LMathsWeb/./sitesubject/views.py", line 166, in index
- b = Article.objects.filter(id__exact=A.title).prefetch_related('Tags').only('ContentTitle', 'Author',
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 317, in __getitem__
- qs._fetch_all()
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1326, in _fetch_all
- self._prefetch_related_objects()
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 813, in _prefetch_related_objects
- prefetch_related_objects(self._result_cache, *self._prefetch_related_lookups)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1730, in prefetch_related_objects
- obj_list, additional_lookups = prefetch_one_level(
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1872, in prefetch_one_level
- all_related_objects = list(rel_qs)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 262, in __len__
- self._fetch_all()
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 1324, in _fetch_all
- self._result_cache = list(self._iterable_class(self))
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/query.py", line 51, in __iter__
- results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
- cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
- return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
- return executor(sql, params, many, context)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
- raise dj_exc_value.with_traceback(traceback) from exc_value
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/django/db/backends/mysql/base.py", line 73, in execute
- return self.cursor.execute(query, args)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
- res = self._query(query)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
- db.query(q)
- File "/www/wwwroot/LMathsWeb/d651643ec7c17a40c4e7c03b0f692b99_venv/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
- _mysql.connection.query(self, query)
- django.db.utils.ProgrammingError: (1146, "Table 'mywebdata.information_article_Tags' doesn't exist")
- [pid: 5729|app: 0|req: 1/1] 127.0.0.1 () {46 vars in 1066 bytes} [Mon Nov 7 12:06:21 2022] GET / => generated 1714 bytes in 3143 msecs (HTTP/1.0 500) 7 headers in 244 bytes (1 switches on core 0)
复制代码 |