I had a duplicate sqlite database. I tried deleting the duplicate but instead deleted both. Is there a way I can generate a new database? The data was not especially important.
Install django-extensions
which can be used in order to reset the database.
then run
python manage.py reset_db
then
python manage.py migrate
When you have no database in your project, a simple python manage.py migrate
will create a new db.sqlite3 file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With