Changes between Version 3 and Version 4 of TaiwanSettings
- Timestamp:
- 11/09/10 10:09:51 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaiwanSettings
v3 v4 1 1 = Taiwan Settings = 2 2 3 Here are example configuration and settings for Taiwan development and deployment.3 Remember to see ConfigurationGuidelines first. And here are example configuration and settings for Taiwan development and deployment. 4 4 5 5 == Basic Settings == 6 6 7 After bzr checking out the codes, edit `eden/models/000_config.py` first. Remember to set `FINISHED_EDITING_CONFIG_FILE = True`. Here are some recommended settings:7 After bzr checking out the codes, first time running with `python web2py.py -S eden -M` should fail, but generating `eden/models/000_config.py` file. Edit `eden/models/000_config.py` and remember to set `FINISHED_EDITING_CONFIG_FILE = True`. Here are some recommended settings: 8 8 9 9 {{{ … … 46 46 >>> db.commit() 47 47 # L1 48 >>> gis.import_csv("L1.csv" , check_duplicates=False)48 >>> gis.import_csv("L1.csv") 49 49 >>> db.commit() 50 50 # L2 51 >>> gis.import_csv("L2.csv" , check_duplicates=False)51 >>> gis.import_csv("L2.csv") 52 52 >>> db.commit() 53 53 # L3 54 >>> gis.import_csv("L3.csv" , check_duplicates=False)54 >>> gis.import_csv("L3.csv") 55 55 >>> db.commit() 56 56 # Example to look for records matching a name 57 57 >>> db.executesql("SELECT * FROM gis_location WHERE name = 'ε εΎ©ι' and level = 'L3'") 58 # Here will show a list of 13 tuples. 58 # Here will show a list of 13 tuples. Use SELECT count(*) in the above statement to verify. 59 59 }}}