Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def templation_info(request):
    return {
        'templation_view': getattr(request, '_templation_view', None),
        'templation_template': getattr(request, '_templation_template', None),
    }
        


src/d/j/django-templation-HEAD/tests/tests/test_context_processor.py   django-templation(Download)
from . import BaseTest
from django.http import HttpRequest
from templation.context_processor import templation_info
 
class TestTemplationTemplateTags(BaseTest):
 
        self.assertEqual(
            templation_info(request), {'templation_view': 'foo', 'templation_template': 'bar'}
        )