Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 3 and Version 4 of UsingModelsOutsideTurboGears


Ignore:
Timestamp:
05/05/06 20:17:17 (13 years ago)
Author:
stickystyle@…
Comment:

added modulename=your_project.config, this is needed to get the logging settings need for 0.9a5.

Legend:

Unmodified
Added
Removed
Modified
  • UsingModelsOutsideTurboGears

    v3 v4  
    2626# that's not the case, you will have to provide a full path to your configuration  
    2727# and set your PYTHONPATH so that the model import succeeds. 
     28# The value for modulename can be pulled right from start-project_name.py  
     29# script in the top-level application directory. 
    2830import turbogears 
    29 turbogears.update_config("dev.cfg") 
     31turbogears.update_config(configfile="dev.cfg", modulename="project_name.config") 
    3032 
    3133# Note: turbogears 0.8.9 doesn't appear to have .update_config() 
     
    5052 
    5153import turbogears 
    52 turbogears.update_config("dev.cfg") 
     54turbogears.update_config(configfile="dev.cfg", modulename="project_name.config") 
    5355from myapp.model import * 
    5456