Setup a Project using Lovely PyRest

Before you can start using lovely.pyrest you have to do the following steps:

Setup a Pyramid application

To use this framework it’s necessary to setup a pyramid project.

See Creating Your First Pyramid Application.

If you are not familiar with the Pyramid framework this would be a good starting point: About Pyramid.

So your application may look like:

from pyramid.config import Configurator


def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(settings=settings)
    config.scan()
    return config.make_wsgi_app()

Table Of Contents

Previous topic

Lovely PyRest Documentation

Next topic

Example Service