Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiny changes in Readme #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Then we need to pull in its dependencies (which includes Deform itself). Then up
(todopyramid)$ pip freeze > requirements.txt
```

Then add the static resources to the `__init__.py`
Then add the static resources to the `todopyramid/__init__.py` after `config.add_static_view('static', 'static', cache_max_age=3600)`

```
# Adding the static resources from Deform
Expand All @@ -150,7 +150,7 @@ config.add_static_view('deform_bootstrap_static', 'deform_bootstrap:static', cac
Now we need to get our template structure in place. We'll add a `todopyramid/layouts.py` with the following (see the [Creating a Custom UX for Pyramid][customux] tutorial for more details):

```
ifrom pyramid.renderers import get_renderer
from pyramid.renderers import get_renderer
from pyramid.decorator import reify


Expand All @@ -162,7 +162,7 @@ class Layouts(object):
return renderer.implementation().macros['layout']
```

Add the `global_layout.pt` with at least the following (look at the source code for the complete template):
Add the `templates/global_layout.pt` with at least the following (look at the source code for the complete template):

```
<!DOCTYPE html>
Expand Down