Skip to content

Instantly share code, notes, and snippets.

@nara-l
Created November 30, 2018 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nara-l/9429cdad3011f357d3ba06b91f2e2f7a to your computer and use it in GitHub Desktop.
Save nara-l/9429cdad3011f357d3ba06b91f2e2f7a to your computer and use it in GitHub Desktop.
Name django migration files
# To add a name to migration files rather than 001_auto_20189084774
python manage.py makemigrations --name DESIRED_NAME appName
# e.g. if app name is `site` and you want to name migration, `new_side_bar`
python manage.py makemigrations --name new_side_bar site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment