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

All Samples(21)  |  Call(16)  |  Derive(0)  |  Import(5)

src/c/h/chieftain-HEAD/board/views.py   chieftain(Download)
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404, redirect
from django.utils.translation import ugettext_lazy as _
from board.models import Post, File, Section, PostForm
from board.shortcuts import get_page_or_404, add_sidebar
 
    #Thread.objects.filter
    return render(request, "index.html", add_sidebar({
        "bookmarks": make_post_descriptions(bposts),
        "random_images": File.objects.random_images()[:3],
    }))
 
 
def settings(request):
    return render(request, "settings.html", add_sidebar())
def faq(request):
    return render(request, "faq.html", add_sidebar())
 
 
def search(request, section_slug, page):
    ).order_by("-date")
    if not posts.count():
        return render(request, "client_error.html", add_sidebar({
            "details": _("Nothing found")
        }))

src/c/h/chieftain-HEAD/modpanel/views.py   chieftain(Download)
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from board.models import Wordfilter, DeniedIP
from board.shortcuts import add_sidebar
 
def index(request):
    return render(request, "modindex.html", add_sidebar())
 
 
@login_required
def wordfilter(request):
    return render(request, "wordfilter.html", add_sidebar({
def banlist(request):
    return render(request, "banlist.html", add_sidebar({
        "banlist": DeniedIP.objects.all()
    }))
 

src/c/h/chieftain-HEAD/pda/views.py   chieftain(Download)
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, render, redirect
from board.models import Post, Section
from board.shortcuts import get_page_or_404, add_sidebar
 
 
def index(request):
    return render(request, "pda/index.html", add_sidebar())

src/c/h/chieftain-HEAD/mobile/views.py   chieftain(Download)
from django.core.paginator import Paginator
from django.shortcuts import render, redirect, get_object_or_404
from board.models import Post, Section
from board.shortcuts import get_page_or_404, add_sidebar
 
 
def index(request):
    return render(request, "mobile/index.html", add_sidebar())

src/c/h/chieftain-HEAD/api1/views.py   chieftain(Download)
 
from board import models
from board.shortcuts import add_sidebar
from board.tools import (
    make_tripcode, parse_user_agent,
def api(request):
    """Render the page that contains some API usage examples."""
    return render(request, "api.html", add_sidebar())