python - Pycharm, django south migration files and git integration -


as know, django south migration files generated command below;

# python manage.py schemamigration model_name --auto

sometimes, forget add migration files project repository.

is there way display reminder of manually generated migration files in pycharm add git repo before committing other project files repository?

according pancakes's comment, enabled pre-commit hook , append lines below:

ud=`git status -u | grep '^untracked files:$'`  if [ -n "$ud" ];          cat <<\eof  warning: there new files exists , not added project repo. eof         exit 1 fi 

now, git gives warning while new files available , breaks process before commit. working on pycharm error popup.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -