05 2012 档案
摘要:1. 获取和安装jdk1.6cd ~/downloadswget -c http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64.binsudo cp jdk-6u32-linux-x64.bin /usr/local/bin/chmod u+x jdk-6u32-linux-x64.binsudo -s ./jdk-6u32-linux-x64.bin2. 修改环境变量vi ~/.bashrc在末尾添加export JAVA_HOME=/usr/local/bin/jdk1.6.0_32export JRE
阅读全文
摘要:1. settings.pyimport osROOT_PATH = os.path.dirname(os.path.abspath(__file__))...STATIC_PATH = os.path.join(ROOT_PATH,'content').replace('\\','/')STATIC_URL = '/content/'......2. urls.pyfrom django.conf import settings...urlpatterns = patterns('', ... (r'^c
阅读全文