# coding: utf-8

# python
import logging

from ximpia.xpcore.models import context_view
from ximpia.xpcore.service import view_tmpl

from $project_name import settings

# Logging
logger = logging.getLogger(__name__)

from service import SiteService

@context_view(__name__)
@view_tmpl(__name__)
def home(request, **args):
	# Instantiage SiteService.home and return result
	site = SiteService(args['ctx'])
	result = site.viewHome()
	return result

# coding: utf-8

# python
import logging

from ximpia.xpcore.models import context_view
from ximpia.xpcore.service import view_tmpl

from $project_name import settings

# Logging
logger = logging.getLogger(__name__)

from service import SiteService

@context_view(__name__)
@view_tmpl(__name__)
def home(request, **args):
	# Instantiage SiteService.home and return result
	site = SiteService(args['ctx'])
	site.request = request
	result = site.viewHome()
	return result

Insert request into home project view
Insert request into home project view
