Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django migrate using db

# 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 #db
ADD COMMENT
Topic
Name
8+9 =