How do I delete DB (sqlite3) in Django 1.9 to start from scratch?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To delete DB (sqlite3) in Django 1.9 to start from scratch
db.sqlite3
) in your django project folder (or wherever you placed it)__init__.py
file frommigration
folder in all django apps (eg:rm */migrations/0*.py
)models.py
).python manage.py makemigrations
orpython3 manage.py makemigrations
python manage.py migrate
.That’s all.