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/t/i/tivix-django-braintree-0.1.3/django_braintree/views.py   tivix-django-braintree(Download)
from django_common.decorators import ssl_required
from django_braintree.forms import UserCCDetailsForm
from django_braintree.models import UserVault
    if request.method == 'POST':
        # Credit Card is being changed/updated by the user
        form = UserCCDetailsForm(request.user, True, request.POST)
        if form.is_valid():
            response = form.save()
            except Exception, e:
                logging.error('Unable to get vault information for user from braintree. %s' % e)
        d['cc_form'] = UserCCDetailsForm(request.user)
    return render(request, template, d)