new_pad ()

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.


from lektor.project import Project

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