Add instructions to configure cornice with WSME
Add an example in the documentation to show how to configure pyramid to use the WSME extensions with cornice. Closes-Bug: #1316888 Change-Id: Id1ad7149260205809de0b7f8ded51d45a8390880
This commit is contained in:
parent
d60de97edc
commit
9b3e71e2ac
@ -84,6 +84,23 @@ Cornice
|
||||
Declare the parameters of a function and returns a function suitable for
|
||||
cornice (ie that takes a request and returns a response).
|
||||
|
||||
Configuration
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
To use WSME with Cornice you have to add a configuration option to your Pyramid application.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from pyramid.config import Configurator
|
||||
|
||||
|
||||
def make_app():
|
||||
config = Configurator()
|
||||
config.include("cornice")
|
||||
config.include("wsmeext.cornice") # This includes WSME cornice support
|
||||
# ...
|
||||
return config.make_wsgi_app()
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user