#### This Page

# `new_pad` ()

- Method of Environment

To access the Database from an environment you need to first construct a Pad. This method can do that for you. For more information about how the pad works, you can refer to the general documentation of it.

## Example

    from lektor.project import Project

    project = Project.discover()
    env = project.make_env()
    pad = env.new_pad()
    root_record = pad.root

## Comments