with some views and interactive features using Twitter Bootstrap. Now I want to maintain
some editorial content through a CMS (Kotti) and aggregate the content in order to show it up
inside my own main application.
the right way using Kotti as a "secondary" application besides my own "primary" application?
If yes then I have a slightly problem with the pipeline configuration. I get the following error
sucmac:pp-demo ajung$ ../bin/pserve development.ini
Traceback (most recent call last):
File "../bin/pserve", line 8, in <module>
load_entry_point('pyramid==1.4a3', 'console_scripts', 'pserve')()
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/pyramid/scripts/pserve.py", line 47, in main
return command.run()
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/pyramid/scripts/pserve.py", line 290, in run
relative_to=base, global_conf=vars)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/pyramid/scripts/pserve.py", line 318, in loadapp
return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
global_conf=global_conf)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 408, in get_context
object_type, name=name)
File "/Users/ajung/sandboxes/pp-demo/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 594, in find_config_section
self.filename))
LookupError: Ambiguous section names ['app:main', 'pipeline:main'] for section 'main' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /Users/ajung/sandboxes/pp-demo/pp-demo/development.ini
ucmac:pp-demo ajung$ cat development.ini
###
# app configuration
###
[app:main]
use = egg:pp-demo
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
# pyramid_debugtoolbar
# By default, the toolbar only appears for clients from IP addresses
# '127.0.0.1' and '::1'.
# debugtoolbar.hosts = 127.0.0.1 ::1
[app:myapp]
use = egg:myapp
pyramid.includes = pyramid_tm
mail.default_sender = yourname@yourhost
sqlalchemy.url = sqlite:///%(here)s/myapp.db
kotti.secret = secret
[filter:fanstatic]
use = egg:fanstatic#fanstatic
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6547
[pipeline:main]
pipeline =
fanstatic
myapp
###
# logging configuration
###
[loggers]
keys = root, ppdemo
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_ppdemo]
level = DEBUG
handlers =
qualname = ppdemo
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
Is there anything I am missing or am I on the wrong trail? Or is there a better way
integration two different Pyramid applications into one? What I don't want is using
Kotti as a "primary" app and rewriting my own code in order to make it work with Kotti.