Exemplo n.º 1
0
def detail(request, pk):
    page = page_for_app_request(request)
    page.activate_language(request)
    return render_detail(request, get_object_or_404(TranslatedArticle, pk=pk),
                         {"page": page})
Exemplo n.º 2
0
def article_list_all(request):
    page = page_for_app_request(request)
    page.activate_language(request)
    return render_list(request,
                       Article.objects.filter(category=page.app_namespace),
                       {"page": page})