Looks like db problem, make sure that it is connected correctly
PS C:\Code\django\Sample_project> python manage.py shell
Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.db import connection
>>> print(connection.settings_dict) # Shows the database configuration
{'ENGINE': 'django.db.backends.sqlite3', 'NAME': WindowsPath('C:/Code/django/Sample_project/db.sqlite3'), 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'CONN_HEALTH_CHECKS': False, 'OPTIONS': {}, 'TIME_ZONE': None, 'USER': '', 'PASSWORD': '', 'HOST':
'', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor()
>>> cursor.execute("SELECT 1") # Simple query to chec None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor()
None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}} None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor()
>>> cursor.execute("SELECT 1") # Simple query to check if the connection works
<django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x000002990B283DA0>
>>> print(cursor.fetchone())
(1,)
>>> exit()
now exiting InteractiveConsole...
PS C:\Code\django\Sample_project>