Modifying the conf.app.modules in the template pecan project to use the module itself (rather than a string).
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from ${egg}.controllers.root import RootController
|
||||
|
||||
import ${egg}
|
||||
|
||||
# Server Specific Configurations
|
||||
server = {
|
||||
@@ -9,8 +8,8 @@ server = {
|
||||
|
||||
# Pecan Application Configurations
|
||||
app = {
|
||||
'root' : RootController(),
|
||||
'modules' : ['${egg}'],
|
||||
'root' : ${egg}.controllers.root.RootController(),
|
||||
'modules' : [${egg}],
|
||||
'static_root' : 'public',
|
||||
'template_path' : '${egg}/templates',
|
||||
'reload': True,
|
||||
|
Reference in New Issue
Block a user