How to remove id from remote objects via django shell

I’m learning Django in sqlite, the numbering of new objects starts from 8, not from 1 which I set.
P.S I couldn’t find the answer to my question on the internet.

News - model names

News.objects.all().delete()

then i created new table objects

News('title = ‘news 1’, content = ‘news content 1’)
news1 = _
news1.title
news1.save()

news1.id
8

Technically, you shouldn’t worry about it. The id being 8 instead of 1 is not something you need to be concerned with.

You could, in theory, reset the sequence (see SQLite Autoincrement), but pay attention to the notes in there talking about how this is in general a bad idea.

1 Like

I understand, it’s better not to touch this thing, thanks)