Before you can start using lovely.pyrest you have to do the following steps:
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()