Browse Source

templates referenced by package name

php2python
Holger Frey 7 years ago
parent
commit
553e01f119
  1. 4
      ordr2/views/pages.py

4
ordr2/views/pages.py

@ -5,7 +5,7 @@ from pyramid.view import view_config @@ -5,7 +5,7 @@ from pyramid.view import view_config
@view_config(
context='ordr2.resources.Root',
permission='view',
renderer='../templates/pages/welcome.jinja2'
renderer='ordr2:templates/pages/welcome.jinja2'
)
def welcome(context, request):
return {}
@ -15,7 +15,7 @@ def welcome(context, request): @@ -15,7 +15,7 @@ def welcome(context, request):
context='ordr2.resources.Root',
name='faq',
permission='view',
renderer='../templates/pages/faq.jinja2'
renderer='ordr2:templates/pages/faq.jinja2'
)
def faqs(context, request):
context.nav_highlight = 'faq'