Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

migrate data django

#record latest model before migration
python3 manage.py makemigrations [app_name]

#migrate to database
python3 manage.py migrate

# configure your database first before migrating default database will be sqlite3
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #migrate #data #django
ADD COMMENT
Topic
Name
2+8 =