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

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

src/o/p/Open-Knesset-HEAD/auxiliary/views.py   Open-Knesset(Download)
def post_details(request, post_id):
    ''' patching django-planet's post_detail view so it would update the
        hitcount and redirect to the post's url
    from hitcount.views import _update_hit_count
    hitcount, created = HitCount.objects.get_or_create(content_type=ctype,
    result = _update_hit_count(request, hitcount)
    post = get_object_or_404(Post, pk=post_id)
    return HttpResponseRedirect(post.url)