Skip to content

Instantly share code, notes, and snippets.

View biodigitals's full-sized avatar

Nicolas Danjean biodigitals

View GitHub Profile
// static/modules/application/my_component.js
App.MyComponentView = Backbone.View.extend({
// component wrapping your features
el: "#mycomponent",
events:{
'click #mybutton':'myMethod'
},
@biodigitals
biodigitals / gist:5609236
Last active December 17, 2015 12:19
django
from django.http import HttpResponse
from django.template import RequestContext
from django.shortcuts import render_to_response
def index(request):
return HttpResponse("Hello, world. You're at the poll index.")
def page(request):
template_vars = {}