I have a set up (Django 1.11) with several apps including OOK, EEK, and others irrelevant ones. I want to delete all the data for OOK while leaving EEK (and the rest) untouched. Ideally, I want all the primary keys to be reset as well so the first new OOK model will get 1 and so on…
Is this possible?
All I can find is reset and sqlclear which are both deprecated. flush removed all data from the database and thus not what I want
I do release that this is an odd thing to do, but this is the hand given to me…
ids, is something that happens at the database layer, hence Django has not much to say on that. You can do this with raw queries, but that is probably not a good idea.python manage.py flushyou could read the documentation docs.djangoproject.com/en/1.11/ref/django-admin/#flush