summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/quick_tour/logging/hello_world/views/default.py2
-rw-r--r--docs/quick_tour/logging/hello_world/views/notfound.py2
-rw-r--r--docs/quick_tour/package/hello_world/views/default.py2
-rw-r--r--docs/quick_tour/package/hello_world/views/notfound.py2
-rw-r--r--docs/quick_tour/sessions/hello_world/views/default.py2
-rw-r--r--docs/quick_tour/sessions/hello_world/views/notfound.py2
-rw-r--r--docs/quick_tour/sqla_demo/sqla_demo/views/default.py2
-rw-r--r--docs/quick_tour/sqla_demo/sqla_demo/views/notfound.py2
8 files changed, 8 insertions, 8 deletions
diff --git a/docs/quick_tour/logging/hello_world/views/default.py b/docs/quick_tour/logging/hello_world/views/default.py
index bbb99d78c..4bbc01e11 100644
--- a/docs/quick_tour/logging/hello_world/views/default.py
+++ b/docs/quick_tour/logging/hello_world/views/default.py
@@ -3,7 +3,7 @@ from pyramid.view import view_config
import logging
log = logging.getLogger(__name__)
-@view_config(route_name='home', renderer='../templates/mytemplate.jinja2')
+@view_config(route_name='home', renderer='hello_world:templates/mytemplate.jinja2')
def my_view(request):
log.debug('Some Message')
return {'project': 'hello_world'}
diff --git a/docs/quick_tour/logging/hello_world/views/notfound.py b/docs/quick_tour/logging/hello_world/views/notfound.py
index 69d6e2804..6d0ff4193 100644
--- a/docs/quick_tour/logging/hello_world/views/notfound.py
+++ b/docs/quick_tour/logging/hello_world/views/notfound.py
@@ -1,7 +1,7 @@
from pyramid.view import notfound_view_config
-@notfound_view_config(renderer='../templates/404.jinja2')
+@notfound_view_config(renderer='hello_world:templates/404.jinja2')
def notfound_view(request):
request.response.status = 404
return {}
diff --git a/docs/quick_tour/package/hello_world/views/default.py b/docs/quick_tour/package/hello_world/views/default.py
index 7458da006..000a66e2e 100644
--- a/docs/quick_tour/package/hello_world/views/default.py
+++ b/docs/quick_tour/package/hello_world/views/default.py
@@ -1,6 +1,6 @@
from pyramid.view import view_config
-@view_config(route_name='home', renderer='../templates/mytemplate.jinja2')
+@view_config(route_name='home', renderer='hello_world:templates/mytemplate.jinja2')
def my_view(request):
return {'project': 'hello_world'}
diff --git a/docs/quick_tour/package/hello_world/views/notfound.py b/docs/quick_tour/package/hello_world/views/notfound.py
index 69d6e2804..6d0ff4193 100644
--- a/docs/quick_tour/package/hello_world/views/notfound.py
+++ b/docs/quick_tour/package/hello_world/views/notfound.py
@@ -1,7 +1,7 @@
from pyramid.view import notfound_view_config
-@notfound_view_config(renderer='../templates/404.jinja2')
+@notfound_view_config(renderer='hello_world:templates/404.jinja2')
def notfound_view(request):
request.response.status = 404
return {}
diff --git a/docs/quick_tour/sessions/hello_world/views/default.py b/docs/quick_tour/sessions/hello_world/views/default.py
index 33b8d8ded..52e002cf5 100644
--- a/docs/quick_tour/sessions/hello_world/views/default.py
+++ b/docs/quick_tour/sessions/hello_world/views/default.py
@@ -3,7 +3,7 @@ from pyramid.view import view_config
import logging
log = logging.getLogger(__name__)
-@view_config(route_name='home', renderer='../templates/mytemplate.jinja2')
+@view_config(route_name='home', renderer='hello_world:templates/mytemplate.jinja2')
def my_view(request):
log.debug('Some Message')
session = request.session
diff --git a/docs/quick_tour/sessions/hello_world/views/notfound.py b/docs/quick_tour/sessions/hello_world/views/notfound.py
index 69d6e2804..6d0ff4193 100644
--- a/docs/quick_tour/sessions/hello_world/views/notfound.py
+++ b/docs/quick_tour/sessions/hello_world/views/notfound.py
@@ -1,7 +1,7 @@
from pyramid.view import notfound_view_config
-@notfound_view_config(renderer='../templates/404.jinja2')
+@notfound_view_config(renderer='hello_world:templates/404.jinja2')
def notfound_view(request):
request.response.status = 404
return {}
diff --git a/docs/quick_tour/sqla_demo/sqla_demo/views/default.py b/docs/quick_tour/sqla_demo/sqla_demo/views/default.py
index a6b05c558..3aadb905f 100644
--- a/docs/quick_tour/sqla_demo/sqla_demo/views/default.py
+++ b/docs/quick_tour/sqla_demo/sqla_demo/views/default.py
@@ -6,7 +6,7 @@ from sqlalchemy.exc import DBAPIError
from .. import models
-@view_config(route_name='home', renderer='../templates/mytemplate.jinja2')
+@view_config(route_name='home', renderer='sqla_demo:templates/mytemplate.jinja2')
def my_view(request):
try:
query = request.dbsession.query(models.MyModel)
diff --git a/docs/quick_tour/sqla_demo/sqla_demo/views/notfound.py b/docs/quick_tour/sqla_demo/sqla_demo/views/notfound.py
index 69d6e2804..3e088ab15 100644
--- a/docs/quick_tour/sqla_demo/sqla_demo/views/notfound.py
+++ b/docs/quick_tour/sqla_demo/sqla_demo/views/notfound.py
@@ -1,7 +1,7 @@
from pyramid.view import notfound_view_config
-@notfound_view_config(renderer='../templates/404.jinja2')
+@notfound_view_config(renderer='sqla_demo:templates/404.jinja2')
def notfound_view(request):
request.response.status = 404
return {}