Pylons / pyramid_layout

Pyramid add-on for managing UI layouts.
Other
24 stars 26 forks source link

AttributeError: add_panel #26

Closed lei12 closed 10 years ago

lei12 commented 10 years ago

soon after wsgi launching:

.../site-packages/pyramid_layout/panel.py", line 34, in callback 
    config.add_panel(panel=ob, **settings)
.../site-packages/pyramid/config/__init__.py", line 811, in __getattr__
    raise AttributeError(name)
AttributeError: add_panel
tseaver commented 10 years ago

You need to get the meta-configuration for pyramid_layout done before using its directives. E.g., add this line to the 'if name == "main"' section of your app::

config.include('pyramid_layout')
lei12 commented 10 years ago

wonderful! thanks