from pyramid.view import view_config
from pyramid.security import NO_PERMISSION_REQUIRED


@view_config(route_name='home', renderer='../templates/index.jinja2',
             permission=NO_PERMISSION_REQUIRED)
def home_view(request):
    """Return homepage."""
    return {}


@view_config(route_name='about', renderer='../templates/about.jinja2',
             permission=NO_PERMISSION_REQUIRED)
def about_view(request):
    """Return about page."""
    return {}

from pyramid.view import view_config
from pyramid.security import NO_PERMISSION_REQUIRED


@view_config(route_name='home', renderer='../templates/index.jinja2',
             permission=NO_PERMISSION_REQUIRED)
def home_view(request):
    """Return homepage."""
    return {}


@view_config(route_name='about', renderer='../templates/about.jinja2',
             permission=NO_PERMISSION_REQUIRED)
def about_view(request):
    """Return about page."""
    return {}

Return homepage. Return about page.