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/b/o/boar-HEAD/boar/awards/views.py   boar(Download)
import datetime
from django.shortcuts import render_to_response
from django import template
from django.http import Http404, HttpResponseRedirect
from boar.awards.forms import VoteForm
    if request.user.is_authenticated():
        if request.method == 'POST':
            form = VoteForm(ceremony, request.user, request.POST, label_suffix='')
            if form.is_valid():
                form.save()
                return HttpResponseRedirect('/awards/thanks/')
        else:
            form = VoteForm(ceremony, request.user, label_suffix='')