LoginSignup
4
4

More than 5 years have passed since last update.

django メモ

Posted at

もともとはいってるpython

$ which python

/usr/bin/python

brew経由でいれる

$ brew install python

pipの設定

$ pip install --upgrade setuptools
$ pip install --upgrade pip

PATHを置き換え

echo 'export PATH=/usr/local/bin:/usr/local/share/python:$PATH' >> ~/.bash_profile
source ~/.bash_profile

確認

$ which python

/usr/local/bin/python

バージョン確認など

$ python --version

Python 2.7.8

>>> import django
>>> django.get_version()
>>> django.VERSION

'1.6.6'

DB作り直し

django 1.5以上は

./manage.py sqlclear <appname> | ./manage.py dbshell 

1.4以下は

python manage.py reset <appname> 
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4