Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django migrate model

# Prepare migration using the latest model definitions
python manage.py makemigrations [app_name]

# Apply migrations for specified app using specified database connection (in settings.py)
python manage.py migrate [app_name] --database [database_name]
 
PREVIOUS NEXT
Tagged: #django #migrate #model
ADD COMMENT
Topic
Name
5+8 =