(I\'m new to Django, Python, and Postgresql) I\'ve been adding and deleting data in my development and noticed that the pk keeps adding up and never reset to 1 even if I del
You can reset model id sequence using sqlsequencereset command
python manage.py sqlsequencereset myapp1 myapp2 myapp3| psql
If you want to read the generated sql command, just execute that command without pipe it to psql.
python manage.py sqlsequencereset myapp1 myapp2 myapp3
You need use this command over your production database. But, as @knbk mentioned, if your production database is new, you don't need to reset id sequences.