Ejemplo n.º 1
0
def sitemap(request):
    map = Sitemap(build_absolute_uri=request.build_absolute_uri, )

    for section in 'core:index core:lead_landing core:podcast core:tech_talks modules:index'.split(
    ):
        map.add(reverse(section), changefreq='weekly')

    return map.response(pretty_print=settings.DEBUG, )
Ejemplo n.º 2
0
def sitemap(request):
    map = Sitemap(build_absolute_uri=request.build_absolute_uri, )

    named_views = [
        'core:index', 'core:lead_landing', 'client_landing_page',
        'core:podcast', 'core:tech_talks', 'modules:index'
    ]
    for section in named_views:
        map.add(reverse(section), changefreq='weekly')

    return map.response(pretty_print=settings.DEBUG, )
Ejemplo n.º 3
0
def sitemap(request):
    map = Sitemap(build_absolute_uri=request.build_absolute_uri, )

    named_views = [
        'core:index',
        'core:lead_landing',
        'checkout:pytools_lp',
        'member_landing_page',
        'core:podcast',
        'core:tech_talks',
        'modules:index',
        'launch:landing_page',
        'launch:cpl1',
        'launch:cpl2',
        'launch:cpl3',
    ]
    for section in named_views:
        map.add(reverse(section), changefreq='weekly')

    return map.response(pretty_print=settings.DEBUG, )