Originally python
$ which python
/usr/bin/python
Put via brew
$ brew install python
pip settings
$ pip install --upgrade setuptools
$ pip install --upgrade pip
Replace PATH
echo 'export PATH=/usr/local/bin:/usr/local/share/python:$PATH' >> ~/.bash_profile
source ~/.bash_profile
Verification
$ which python
/usr/local/bin/python
Version confirmation etc.
$ python --version
Python 2.7.8
>>> import django
>>> django.get_version()
>>> django.VERSION
'1.6.6'
DB remake
django 1.5 and above
./manage.py sqlclear <appname> | ./manage.py dbshell
1.4 or less
python manage.py reset <appname>
Recommended Posts