1. django-admin startproject django_test
2. vim settings.py
change the database session.
DATABASES = {
'default': {
'ENGINE': 'mysql',#'django.db.backends.', Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'django_test', ...
import java.util.*; import java.io.*; class PropTest { public static void main(String[] args) { /*properties pps=System.getproperties(); pps.list(System.out);*/ properties pps=new properties(); try { pps.load(new FileInputStream("winsun.ini")); Enumeration enum=pps.propertyNames(); while(enum.hasMoreElements()) { String strKey=(String)enum.nextElement(); String strV...
在OK状态下输入set-defaults,用BOOT重新启动以后,显示器(显卡是PGX64)无法显示,键盘也无反应。强制关机以后,现象依旧。急请各位兄弟支招,谢谢! [ 本帖最后由 gdjlzzf 于 2005-12-23 05:12 编辑 ]
在OK状态下输入set-defaults,用BOOT重新启动以后,显示器(显卡是PGX64)无法显示,键盘也无反应。强制关机以后,现象依旧。急请各位兄弟支招,谢谢!\n\n[ 本帖最后由 gdjlzzf 于 2005-12-23 05:12 编辑 ]
ECCSD Eastern Cape Centralized Suppliers Database MOTOS Modern Terminals Operations System IMMD Immigration Department ERDMS ELECTRONIC RECORDS & DOCUMENT MANAGEMENT SYSTEM HTACL 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20665/showart_474247.html
readproperties(String file) throws IOException { InputStream is=new FileInputStream(new File(file)); properties properties= new properties(); properties.load(is); for (Enumeration e = properties.keys(); e.hasMoreElements();) { String key = ((String)e.nextElement()).trim(); String value = properties.getProperty(key).trim(...
properties类是Hashtable的子类, 1、它提供了将Hashtable对象中的关键字和值保存到文件和从文件中读取关键字和值到Hashtable对象中的方法。 2、如果要用properties.store方法存储properties对象中的内容,每个属性的关键字和值都必须是String类型 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/67175/showart_690488.html