Search code examples
pythondjango

Generating new SQLite database django


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.


Solution

  • 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