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

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

src/c/h/chieftain-HEAD/board/views.py   chieftain(Download)
from board.models import Post, File, Section, PostForm
from board.shortcuts import get_page_or_404, add_sidebar
from board.tools import make_post_descriptions
 
__all__ = [
    #Thread.objects.filter
    return render(request, "index.html", add_sidebar({
        "bookmarks": make_post_descriptions(bposts),
        "random_images": File.objects.random_images()[:3],
    }))
def storage(request, name="feed"):
    section = request.GET.get("section", name)
    session_posts = request.session.get(section, {})
    posts = make_post_descriptions(Post.objects.filter(id__in=session_posts))
    return render(request, "storage.html", add_sidebar({"posts": posts}))