lektor-website/content/docs/api/project/from-file/contents.lr

22 lines
442 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
title: from_file
---
type: method
---
signature: filename
---
summary: Loads a project from a project file.
---
body:
This is the most common way to create a project insteance. It's a class
method that given the path to a project file will load the project. If
the file does not exist then `None` is returned.
## Example
```python
from lektor.project import Project
project = Project.from_file('/path/to/the/project.lektorproject')
```