@dert2313

В чем заключается ошибка?

Traceback (most recent call last):
  File "B:\learning_log\ll_env\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
    response = get_response(request)
  File "B:\learning_log\ll_env\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "B:\learning_log\ll_env\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "B:\learning_log\ll_env\lib\site-packages\django\contrib\auth\decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "b:\learning_log\learning_logs\views.py", line 24, in topics
    return render(request, 'learning_logs/topics.html', context)
  File "B:\learning_log\ll_env\lib\site-packages\django\shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\backends\django.py", line 61, in render
    return self.template.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 171, in render
    return self._render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 163, in _render
    return self.nodelist.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 936, in render
    bit = node.render_annotated(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 903, in render_annotated
    return self.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 163, in _render
    return self.nodelist.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 936, in render
    bit = node.render_annotated(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 903, in render_annotated
    return self.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 936, in render
    bit = node.render_annotated(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 903, in render_annotated
    return self.render(context)
  File "B:\learning_log\ll_env\lib\site-packages\django\template\defaulttags.py", line 166, in render
    len_values = len(values)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\models\query.py", line 258, in __len__
    self._fetch_all()
  File "B:\learning_log\ll_env\lib\site-packages\django\db\models\query.py", line 1261, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "B:\learning_log\ll_env\lib\site-packages\django\db\models\query.py", line 57, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\models\sql\compiler.py", line 1151, in execute_sql
    cursor.execute(sql, params)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\backends\utils.py", line 100, in execute
    return super().execute(sql, params)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\backends\utils.py", line 68, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "B:\learning_log\ll_env\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
  File "B:\learning_log\ll_env\lib\site-packages\django\db\backends\sqlite3\base.py", line 396, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such column: date.date_added
[28/Apr/2020 16:20:19] "GET /topics/ HTTP/1.1" 500 193796
  • Вопрос задан
  • 52 просмотра
Решения вопроса 1
@deliro
Ошибка заключается в:
no such column: date.date_added
Не благодари
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы