Django DB initialization commands

I'll keep the command for my memorandum in case I want to recreate the Django DB.

  1. cd (application you want to remove)
  2. rm -d -r migrations/
  3. cd (project file)
  4. rm -d pr db.sqlite3
  5. python manage.py makemigrations (application name)
  6. python manage.py migrate
  7. python manage.py createsuperuser

Recommended Posts

Django DB initialization commands
Django commands ignore USE_I18N
[Django series] Basic commands
Organize [Django] commands and roles
Prevent double launch of django commands
8 Frequently Used Commands in Python Django
Django
Commands for creating SNS with Django
Django: Migration doesn't reflect model in DB
Summary of frequently used commands of django (beginner)
Commands for creating a new django project
DB settings when using Django + SQLAlchemy + Alembic