Skip to content

Instantly share code, notes, and snippets.

View bwarren2's full-sized avatar

Ben Warren bwarren2

  • Education Advisory Board
  • Washington, DC
View GitHub Profile
#Error Email
Task app.management.tasks.api_calls.ApiCall with id b670e373-1274-472e-8771-ba2d5d0aa1d0 raised exception:
'SoftTimeLimitExceeded()'
Task was called with args: [] kwargs: {'mode': '<mode>', 'api_context': <app.management.tasks.api_calls.ApiContext object at 0x2bba190>}.
The contents of the full traceback was:
Traceback (most recent call last):
@bwarren2
bwarren2 / api_task.py
Last active August 29, 2015 14:03
api_task
#Task
class ApiCall(BaseTask):
def run(self, mode, **kwargs):
try:
modeDict = {'<mode>': "<url>"}
try:
url = modeDict[mode]
@bwarren2
bwarren2 / _subscribe_form.html
Created February 24, 2014 19:16
subscribe_form
{% load url from future %}
{% load bootstrap_tags %}
<div class="subscribe-form">
<h2>Purchase a Subscription</h2>
<p class="lead">Provide your payment details to start your subscription today.</p>
{% if error %}
<div class="alert alert-error">{{ error }}</div>
{% endif %}
<form action="{% url 'payments:payments_ajax_subscribe' %}" class="form ajax" data-stripe-key="{{ STRIPE_PUBLIC_KEY }}" data-replace-closest=".subscribe-form" method="POST">