python - Django South: schemamigration hanging for model changes -
i following south tutorial. able steps under "the first migration" successfully. however, when modify schema , run schemamigration again:
python manage.py schemamigration southtut --auto
the command never completes. don't error messages. here's modification made model in south tutorial:
class knight(models.model): name = models.charfield(max_length=100) of_the_round_table = models.booleanfield() foo = models.integerfield() # added field
here's log of initial migration:
$ python manage.py schemamigration southtut --initial creating migrations directory @ 'c:\users\jp\documents\project\southtut\migrations'... creating __init__.py in 'c:\users\jp\documents\project\southtut\migrations'... + added model southtut.knight created 0001_initial.py. can apply migration with: ./manage.py migrate southtut (django-test) jp@jp-pc ~/project $ (django-test) jp@jp-pc ~/project $ python manage.py migrate southtut running migrations southtut: - migrating forwards 0001_initial. > southtut:0001_initial - loading initial data southtut. installed 0 object(s) 0 fixture(s)
here's update.
i using msys
. noticed when entered python
(without arguments), hung. when used cmd
, running python
did not hang. when did python manage.py schemamigration southtut --auto
in cmd, command completed. had install virtualenvwrapper-win, though, since use virtualenvwrapper. know why running schememigration
--auto
hangs on msys? or specifically, why running python
hangs? can run startapp
, syncdb
, , runserver
without issues. prefer not use cmd.
another update: related problem of python not being interactive. installed msys on work pc has windows 7, , can run python form msys without problem. problem pc vista, home pc. used work before. problem still happens if uninstall , reinstall msys. think openssh windows may have caused problem because clobbered path.
python -i
works fine, though. if python -i manage.py schemamigration southtut --auto
migration file created, python prompt @ end. guess live this, used work before, , driving me nuts.
Comments
Post a Comment