vi ~/.exrc
set expandtab
set tabstop=4
set number
参考リンクload to vi master
/usr/lib/python2.4/site-packages/django/db/__init__.py:60:
DeprecationWarning: Short names for ENGINE in database configurations are deprecated.
Prepend default.ENGINE with 'django.db.backends.'
ぐぐって見たけど英語ばかりでした。
[hogehoge@lffoog lffoog]$ vi settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
つけたら消えましたとさ。
[hogehoge@lffoog MySQL-python-1.2.3]$ python setup.py build
Traceback (most recent call last):
File "setup.py", line 5, in ?
from setuptools import setup, Extension
ImportError: No module named setuptools
[hogehoge@lffoog MySQL-python-1.2.3]$ sudo python ez_setup.py
Downloading http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg
Processing setuptools-0.6c11-py2.4.egg
creating /usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg
Extracting setuptools-0.6c11-py2.4.egg to /usr/lib/python2.4/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.4 script to /usr/bin
Installed /usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
python setup.py build
sudo python setup.py install
python manage.py runserver [ip address:port]
iptables -A INPUT -s [接続元IP] -d [鯖IP] -p tcp --dport [鯖公開ポート] -j ACCEPT
iptables -L --line-number ←これで設定確認
service iptables save
service iptables restart