Skip to content

Instantly share code, notes, and snippets.


Collin Rukundo crukundo

View GitHub Profile
crukundo /
Created Apr 17, 2021 — forked from mfd/
Gotham font

Gotham by Hoefler & Co

<link rel="">

crukundo /
Created Jul 30, 2020 — forked from alee/
Django Discourse SSO endpoint adapted from - depends on DISCOURSE_BASE_URL and DISCOURSE_SSO_SECRET
import base64
import hmac
import hashlib
from urllib import parse
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseBadRequest, HttpResponseRedirect
from django.conf import settings
from django import forms
from django.contrib.auth.models import User
class UserProfileForm(forms.ModelForm):
class Meta:
model = User
fields = ['first_name', 'last_name', 'email']
crukundo / cbv_multiple_forms.html
Created Apr 29, 2020 — forked from badri/cbv_multiple_forms.html
Django multiple forms code with sample usage
View cbv_multiple_forms.html
{% extends "base.html" %}
{% block content %}
<form method="post">{% csrf_token %}
{{ forms.subscription }}
<input type="submit" value="Subscribe">
<form method="post">{% csrf_token %}
{{ }}
<input type="submit" value="Send">