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 Specific Configurations
|
||||||
server = {
|
server = {
|
||||||
@@ -9,8 +8,8 @@ server = {
|
|||||||
|
|
||||||
# Pecan Application Configurations
|
# Pecan Application Configurations
|
||||||
app = {
|
app = {
|
||||||
'root' : RootController(),
|
'root' : ${egg}.controllers.root.RootController(),
|
||||||
'modules' : ['${egg}'],
|
'modules' : [${egg}],
|
||||||
'static_root' : 'public',
|
'static_root' : 'public',
|
||||||
'template_path' : '${egg}/templates',
|
'template_path' : '${egg}/templates',
|
||||||
'reload': True,
|
'reload': True,
|
||||||
|
|||||||
Reference in New Issue
Block a user