Exemple #1
0
def page(request):
    path = request.path
    if not is_site_view(path):
        return {}
    page = None
    try:
        page = Pagina.objects.get(url=path)
    except Pagina.DoesNotExist:
        pass
    return {'page': page}
 def inner(request):
     if not is_site_view(request.path):
         return {}
     else:
         return func(request)