0
1

OperationalError at /admin/todo/todo/
no such column: todo_todo.memo
Request Method:	GET
Request URL:	http://127.0.0.1:8000/admin/todo/todo/
Django Version:	4.1.4
Exception Type:	OperationalError
Exception Value:	
no such column: todo_todo.memo
Exception Location:	C:\Users\HOME\anaconda3\lib\site-packages\django\db\backends\sqlite3\base.py, line 357, in execute
Raised during:	django.contrib.admin.options.changelist_view
Python Executable:	C:\Users\HOME\anaconda3\python.exe
Python Version:	3.9.13
Python Path:	
['C:\\Users\\HOME\\Desktop\\todowoo_project',
 'C:\\Users\\HOME\\anaconda3\\python39.zip',
 'C:\\Users\\HOME\\anaconda3\\DLLs',
 'C:\\Users\\HOME\\anaconda3\\lib',
 'C:\\Users\\HOME\\anaconda3',
 'C:\\Users\\HOME\\anaconda3\\lib\\site-packages',
 'C:\\Users\\HOME\\anaconda3\\lib\\site-packages\\win32',
 'C:\\Users\\HOME\\anaconda3\\lib\\site-packages\\win32\\lib',
 'C:\\Users\\HOME\\anaconda3\\lib\\site-packages\\Pythonwin']
Server time:	Mon, 26 Dec 2022 17:04:39 +0000

Происходит ошибка когда я в админ панели выбираю Todos, OperationalError at /admin/todo/todo/
no such column: todo_todo.memo, уже пробовал гулглить но так и не смог найти ответ

from django.db import models
from django.contrib.auth.models import User

class Todo(models.Model):
    title = models.CharField(max_length=100)
    memo = models.TextField(blank=True)
    created = models.DateTimeField(auto_now_add=True)
    datecomleted = models.DateTimeField(null=True, blank=True)
    important = models.BooleanField(default=False)
    user = models.ForeignKey(User, on_delete=models.CASCADE)

    def __str__(self):
        return self.title

aristecht
1 year ago






Еще нет ответов