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 12 and Version 13 of TurboGearsOnDreamHost


Ignore:
Timestamp:
01/23/06 17:11:10 (13 years ago)
Author:
sdelatorre
Comment:

Added a missing import statement to the .9/SVN code. Updated user edit section.

Legend:

Unmodified
Added
Removed
Modified
  • TurboGearsOnDreamHost

    v12 v13  
    416416from os.path import * 
    417417import pkg_resources 
     418import turbogears 
    418419 
    419420pkg_resources.require("TurboGears") 
     
    421422# -- START USER EDIT SECTION 
    422423# -- Users must edit this section --  
    423 code_dir = ''           # (Required) The base directory of the TG app code. 
    424 root_class_name = ''    # (Required) The fully qualified Root class name. 
    425 log_dir = ''            # (Optional) The log directory. Default = code_dir. 
     424code_dir = ''                               # (Required) The base directory of the TG app code. 
     425root_class_name = ''                        # (Required) The fully qualified Root class name. 
     426project_module_name = 'PROJECTNAME.config'  # (Required) The config module name. Replace 
     427                                            # PROJECTNAME with your project's name (e.g. wiki20). 
     428log_dir = ''                                # (Optional) The log directory. Default = code_dir. 
    426429# -- END USER EDIT SECTION 
    427430 
     
    432435    global root_class_name 
    433436    global log_dir 
     437    global project_module_name 
    434438    last_mark = 0 
    435439 
     
    466470 
    467471    if exists(join(code_dir, "setup.py")): 
    468         turbogears.update_config(configfile=join(code_dir, "devcfg.py"),modulename="PROJECTNAME.config") 
     472        turbogears.update_config(configfile=join(code_dir, "devcfg.py"),modulename=project_module_name) 
    469473    else: 
    470         turbogears.update_config(configfile=join(code_dir, "prodcfg.py"),modulename="PROJECTNAME.config") 
     474        turbogears.update_config(configfile=join(code_dir, "prodcfg.py"),modulename=project_module_name) 
    471475 
    472476    # Set environment to production to disable auto-reload and