Maru Kun

84%
Flag icon
You can simply reset the database instead of migrating, but that will lose all existing data. It’s good practice to learn how to migrate a database while maintaining the integrity of users’ data. If you do want to start with a fresh database, issue the command python manage.py flush to rebuild the database structure. You’ll have to create a new superuser, and all of your data will be gone.
Python Crash Course: A Hands-On, Project-Based Introduction to Programming
Rate this book
Clear rating