Skip to content

Instantly share code, notes, and snippets.

View bokskog's full-sized avatar

Pauline Karlsson bokskog

View GitHub Profile
@mr-rigden
mr-rigden / dolly.py
Created February 20, 2018 16:18
Dolly
##############################
# Builders
##############################
def build_PlainSpeech(body):
speech = {}
speech['type'] = 'PlainText'
speech['text'] = body
return speech
@langri-sha
langri-sha / registration_view.py
Created February 9, 2011 20:40
Class-based django-registration view
from django.views.generic.edit import FormView
from django.views.generic.base import RedirectView
from registration.models import RegistrationProfile
from forms import RegistrationForm
class AccountRegistrationView(FormView):
template_name = 'authentication/registration_form.html'
form_class = RegistrationForm