Admin console error

this is my models code

class Services(models.Model):
    title = models.CharField(max_length=100, verbose_name="title")
    title_en = models.CharField(max_length=100, verbose_name="title_en")


    class Meta:
        ordering = ['title']
        verbose_name = "services"

    def __str__(self):
        return self.title

and i add new rows

class Services(models.Model):
    title = models.CharField(max_length=100, verbose_name="title")
    title_en = models.CharField(max_length=100, verbose_name="title_en")
    title_head = models.CharField(max_length=100, verbose_name="title_head")
    title_de = models.CharField(max_length=100, verbose_name="title_de")
    class_icon = models.CharField(max_length=100, verbose_name="class_icon")

    class Meta:
        ordering = ['title']
        verbose_name = "services"

    def __str__(self):
        return self.title

In the first case, the admin was working fine, but when I added three new lines, it gives this error

OperationalError at /admin/blog/services/

no such column: blog_services.title_head

Request Method: GET
Request URL: http://127.0.0.1:8000/admin/blog/services/
Django Version: 5.1.1
Exception Type: OperationalError
Exception Value: no such column: blog_services.title_head
Exception Location: C:\Users\adel\Desktop\djangoTour.venv\Lib\site-packages\django\db\backends\sqlite3\base.py, line 354, in execute
Raised during: django.contrib.admin.options.changelist_view
Python Executable: C:\Users\adel\Desktop\djangoTour.venv\Scripts\python.exe
Python Version: 3.12.4
Python Path: ```
[‘C:\Users\adel\Desktop\djangoTour’,
'C:\Program Files\JetBrains\PyCharm ’
‘2024.1.4\plugins\python\helpers\pycharm’,
‘C:\Users\adel\Desktop\djangoTour’,
‘C:\Users\adel\AppData\Local\Programs\Python\Python312\python312.zip’,
‘C:\Users\adel\AppData\Local\Programs\Python\Python312\DLLs’,
‘C:\Users\adel\AppData\Local\Programs\Python\Python312\Lib’,
‘C:\Users\adel\AppData\Local\Programs\Python\Python312’,
‘C:\Users\adel\Desktop\djangoTour\.venv’,
‘C:\Users\adel\Desktop\djangoTour\.venv\Lib\site-packages’]
|Server time:|Thu, 12 Sep 2024 12:45:33 +0000|


It means that it cannot create new codes in the console, please help

After adding the new fields, did you do a makemigrations and migrate to update the database?

Hello, yes sir, I did these things

Please show the output of a showmigrations command. Then post the contents of the migration file that is to add the fields to that model.

Side note: When posting errors, please post the error message and traceback from the runserver console, not the error messages posted in the browser.

manage.py@djangoTour > makemigrations
C:\Users\adel\Desktop\djangoTour\.venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm 2024.1.4\plugins\python\helpers\pycharm\django_manage.py" makemigrations C:/Users/adel/Desktop/djangoTour
Tracking file by folder pattern:  migrations
No changes detected

Process finished with exit code 0

this is makemigrations

Tracking file by folder pattern:  migrations
No changes detected

this is migrate

C:\Users\adel\Desktop\djangoTour\.venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm 2024.1.4\plugins\python\helpers\pycharm\django_manage.py" migrate C:/Users/adel/Desktop/djangoTour
Tracking file by folder pattern:  migrations
Operations to perform:
  Apply all migrations: admin, auth, blog, contenttypes, sessions
Running migrations:
  No migrations to apply.

Process finished with exit code 0
manage.py@djangoTour > runserver
C:\Users\adel\Desktop\djangoTour\.venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm 2024.1.4\plugins\python\helpers\pycharm\django_manage.py" runserver C:/Users/adel/Desktop/djangoTour
Tracking file by folder pattern:  migrations
Performing system checks...

Watching for file changes with StatReloader
System check identified no issues (0 silenced).
September 12, 2024 - 22:29:32
Django version 5.1.1, using settings 'djangoTour.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.


runserver is ok

return super().execute(query, params)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

django.db.utils.OperationalError: no such table: blog_servicescategory
[12/Sep/2024 22:31:25] “GET /admin/blog/servicescategory/ HTTP/1.1” 500 196296

this is error after run server

I think the database has a problem that it cannot add new lines after creating a new line? Your opinion is respected

Because it gives this error in the admin console
With this form in the browser

OperationalError at /admin/blog/servicescategory/

no such table: blog_servicescategory

Request Method: GET
Request URL: http://127.0.0.1:8000/admin/blog/servicescategory/
Django Version: 5.1.1
Exception Type: OperationalError
Exception Value: no such table: blog_servicescategory
Exception Location: C:\Users\adel\Desktop\djangoTour.venv\Lib\site-packages\django\db\backends\sqlite3\base.py, line 354, in execute
Raised during: django.contrib.admin.options.changelist_view
Python Executable: C:\Users\adel\Desktop\djangoTour.venv\Scripts\python.exe
Python Version: 3.12.4

Please post the output of showmigrations (not makemigrations or migrate) and the content of the file in your apps migrations directory that has the migration information for this model for adding the files.

This is just the last line, we would need to see the complete traceback.

Also, please post the INSTALLED_APPS section of your settings.py file.