Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r7423]: tags / 1.0.4.2 / toolbox-start.py Maximize Restore History

Download this file

toolbox-start.py    23 lines (18 with data), 495 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
import pkg_resources
pkg_resources.require("TurboGears")
import cherrypy
from os.path import *
import sys
from turbogears import toolbox
root = toolbox.Toolbox()
cherrypy.root = root
print "Toolbox Development Mode"
cherrypy.config.update({"global" : {
"server.socketPort" : 7654,
"server.environment" : "development",
"server.logToScreen" : True,
"autoreload.package" : "turbogears",
"logDebugInfoFilter.on" : False
}})
cherrypy.server.start()